Lines Matching defs:bytes
132 guint8 *bytes = (guint8 *)g_malloc(sizeof(guint8) * 4);
133 if (!read(bytes, 4)) {
134 g_free(bytes);
138 guint32 signature = UNPACK_UB4(bytes, 0);
139 g_free(bytes);
147 bytes = (guint8 *)g_malloc(sizeof(guint8) * 12);
148 if (!read(bytes, 12)) {
149 g_free(bytes);
152 g_free(bytes);
162 guint32 JarFile::get_crc(guint8 *bytes, guint16 flags)
167 crc = UNPACK_UB4(bytes, LOC_CRC);
201 guint8 *bytes;
207 bytes = (guint8 *)g_malloc(sizeof(guint8) * 30);
208 if (!read(bytes+4, 26)) {
209 g_free(bytes);
212 guint32 compressed_size = UNPACK_UB4(bytes, LOC_CSIZE);
213 guint16 filename_length = UNPACK_UB2(bytes, LOC_FNLEN);
214 guint16 eflen = UNPACK_UB2(bytes, LOC_EFLEN);
215 guint16 flags = UNPACK_UB2(bytes, LOC_EXTRA);
216 guint16 method = UNPACK_UB2(bytes, LOC_COMP);
223 g_free(bytes);
236 guint32 crc = get_crc(bytes, flags);
239 g_free(bytes);
297 guint8 *bytes;
302 bytes = (guint8 *)g_malloc(sizeof(guint8) * RDSZ);
306 if (!(nbytes = read(bytes, nbytes))) {
307 g_free(bytes);
311 crc2 = crc32(crc2, (Bytef*)bytes, nbytes);
313 g_byte_array_append (gba, bytes, nbytes);
318 std::printf("%u bytes written\n", out_a);
322 g_free(bytes);
325 bytes = gba->data;
330 return bytes;
397 std::printf("%d bytes left over\n", _zs.avail_in);
417 guint8 *bytes = (guint8 *)g_malloc(sizeof(guint8) * 16);
418 if (!read(bytes, 16)) {
419 g_free(bytes);
423 guint32 signature = UNPACK_UB4(bytes, 0);
424 g_free(bytes);
429 crc = UNPACK_UB4(bytes, 4);