Home | History | Annotate | Download | only in bfd

Lines Matching refs:compressed_buffer

31 decompress_contents (bfd_byte *compressed_buffer,
45 strm.next_in = (Bytef*) compressed_buffer + 12;
98 bfd_byte *compressed_buffer;
101 compressed_buffer = (bfd_byte *) bfd_malloc (compressed_size);
103 if (compressed_buffer == NULL)
106 if (compress ((Bytef*) compressed_buffer + 12,
111 free (compressed_buffer);
118 memcpy (compressed_buffer, "ZLIB", 4);
119 compressed_buffer[11] = uncompressed_size; uncompressed_size >>= 8;
120 compressed_buffer[10] = uncompressed_size; uncompressed_size >>= 8;
121 compressed_buffer[9] = uncompressed_size; uncompressed_size >>= 8;
122 compressed_buffer[8] = uncompressed_size; uncompressed_size >>= 8;
123 compressed_buffer[7] = uncompressed_size; uncompressed_size >>= 8;
124 compressed_buffer[6] = uncompressed_size; uncompressed_size >>= 8;
125 compressed_buffer[5] = uncompressed_size; uncompressed_size >>= 8;
126 compressed_buffer[4] = uncompressed_size;
133 sec->contents = compressed_buffer;
167 bfd_byte *compressed_buffer;
201 compressed_buffer = (bfd_byte *) bfd_malloc (sec->compressed_size);
202 if (compressed_buffer == NULL)
212 ret = bfd_get_section_contents (abfd, sec, compressed_buffer,
226 if (!decompress_contents (compressed_buffer, sec->compressed_size, p, sz))
232 free (compressed_buffer);
236 free (compressed_buffer);
295 bfd_byte compressed_buffer [12];
304 compressed = (bfd_get_section_contents (abfd, sec, compressed_buffer, 0, 12)
305 && CONST_STRNEQ ((char*) compressed_buffer, "ZLIB"));
313 && ISPRINT (compressed_buffer[4]))
347 bfd_byte compressed_buffer [12];
353 || !bfd_get_section_contents (abfd, sec, compressed_buffer, 0, 12))
361 if (! CONST_STRNEQ ((char*) compressed_buffer, "ZLIB"))
367 uncompressed_size = compressed_buffer[4]; uncompressed_size <<= 8;
368 uncompressed_size += compressed_buffer[5]; uncompressed_size <<= 8;
369 uncompressed_size += compressed_buffer[6]; uncompressed_size <<= 8;
370 uncompressed_size += compressed_buffer[7]; uncompressed_size <<= 8;
371 uncompressed_size += compressed_buffer[8]; uncompressed_size <<= 8;
372 uncompressed_size += compressed_buffer[9]; uncompressed_size <<= 8;
373 uncompressed_size += compressed_buffer[10]; uncompressed_size <<= 8;
374 uncompressed_size += compressed_buffer[11];