Lines Matching refs:buffer

116 	unsigned char buffer[CUDBG_CHUNK_BUF_LEN];  in write_chunk_header()  local
119 buffer[0] = id & 255; in write_chunk_header()
120 buffer[1] = (unsigned char)(id >> 8); in write_chunk_header()
121 buffer[2] = options & 255; in write_chunk_header()
122 buffer[3] = (unsigned char)(options >> 8); in write_chunk_header()
123 buffer[4] = size & 255; in write_chunk_header()
124 buffer[5] = (size >> 8) & 255; in write_chunk_header()
125 buffer[6] = (size >> 16) & 255; in write_chunk_header()
126 buffer[7] = (size >> 24) & 255; in write_chunk_header()
127 buffer[8] = checksum & 255; in write_chunk_header()
128 buffer[9] = (checksum >> 8) & 255; in write_chunk_header()
129 buffer[10] = (checksum >> 16) & 255; in write_chunk_header()
130 buffer[11] = (checksum >> 24) & 255; in write_chunk_header()
131 buffer[12] = extra & 255; in write_chunk_header()
132 buffer[13] = (extra >> 8) & 255; in write_chunk_header()
133 buffer[14] = (extra >> 16) & 255; in write_chunk_header()
134 buffer[15] = (extra >> 24) & 255; in write_chunk_header()
137 buffer, 16); in write_chunk_header()
147 unsigned char *buffer; in write_compression_hdr() local
158 buffer = (unsigned char *)tmp_buffer.data; in write_compression_hdr()
166 buffer[0] = fsize & 255; in write_compression_hdr()
167 buffer[1] = (fsize >> 8) & 255; in write_compression_hdr()
168 buffer[2] = (fsize >> 16) & 255; in write_compression_hdr()
169 buffer[3] = (fsize >> 24) & 255; in write_compression_hdr()
170 buffer[4] = 0; in write_compression_hdr()
171 buffer[5] = 0; in write_compression_hdr()
172 buffer[6] = 0; in write_compression_hdr()
173 buffer[7] = 0; in write_compression_hdr()
174 buffer[8] = (strlen(shown_name)+1) & 255; in write_compression_hdr()
175 buffer[9] = (unsigned char)((strlen(shown_name)+1) >> 8); in write_compression_hdr()
177 checksum = update_adler32(checksum, buffer, 10); in write_compression_hdr()
189 &(pout_buff->offset), buffer, 10); in write_compression_hdr()
285 unsigned char buffer[8]; in detect_magic() local
290 &_c_buff->offset, buffer, 8); in detect_magic()
296 if (buffer[c] != sixpack_magic[c]) in detect_magic()
316 unsigned char buffer[CUDBG_CHUNK_BUF_LEN]; in read_chunk_header() local
318 &pc_buff->offset, buffer, 16); in read_chunk_header()
322 *pid = readU16(buffer) & 0xffff; in read_chunk_header()
323 *poptions = readU16(buffer+2) & 0xffff; in read_chunk_header()
324 *psize = readU32(buffer+4) & 0xffffffff; in read_chunk_header()
325 *pchecksum = readU32(buffer+8) & 0xffffffff; in read_chunk_header()
326 *pextra = readU32(buffer+12) & 0xffffffff; in read_chunk_header()
345 unsigned char buffer[CUDBG_MIN_COMPR_LEN]; in decompress_buffer() local
390 &pc_buff->offset, buffer, in decompress_buffer()
396 checksum = update_adler32(1L, buffer, chunk_size); in decompress_buffer()
400 decompressed_size = (u32)readU32(buffer); in decompress_buffer()
445 &pc_buff->offset, buffer, in decompress_buffer()
453 &pd_buff->offset, buffer, in decompress_buffer()
456 buffer, in decompress_buffer()