⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adler32.c

📁 kaffe Java 解释器语言,源码,Java的子集系统,开放源代码
💻 C
字号:
/* * java.util.zip.Adler32.c * * Copyright (c) 1996, 1997 *	Transvirtual Technologies, Inc.  All rights reserved. * * See the file "license.terms" for information on usage and redistribution  * of this file.  */#include "config.h"#include "config-std.h"#include "config-mem.h"#include <native.h>#include "java_util_zip_Adler32.h"#if defined(HAVE_LIBZ) && defined(HAVE_ZLIB_H)#include <zlib.h>voidjava_util_zip_Adler32_update(struct Hjava_util_zip_Adler32* this, HArrayOfByte* buf, jint from, jint len){	unhand(this)->adler = adler32(unhand(this)->adler, &unhand_array(buf)->body[from], len);}voidjava_util_zip_Adler32_update1(struct Hjava_util_zip_Adler32* this, jint val){	jbyte b;	b = val;	unhand(this)->adler = adler32(unhand(this)->adler, &b, sizeof(b));}#elsestatic void supportDisabled (void){	SignalError ("kaffe.util.SupportDisabled",		     "libz was not found by Kaffe configure script");}voidjava_util_zip_Adler32_update(struct Hjava_util_zip_Adler32* this, HArrayOfByte* buf, jint from, jint len){	supportDisabled();}voidjava_util_zip_Adler32_update1(struct Hjava_util_zip_Adler32* this, jint val){	supportDisabled();}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -