adler32.c
来自「kaffe是一个java虚拟机的源代码。里面包含了一些java例程和标准的jav」· C语言 代码 · 共 58 行
C
58 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?