Lines Matching full:bytes
43 /// getExtent - Returns the size of the region in bytes. (The region is
46 /// May block until all bytes in the stream have been read
52 /// May block until (address - base) bytes have been read
59 /// readBytes - Tries to read a contiguous range of bytes from the
61 /// May block until (address - base + size) bytes have
63 /// not do partial reads - if size bytes cannot be read,
68 /// @param size - The number of bytes to copy.
70 /// and large enough to hold size bytes.
80 /// May block until (address - base + size) bytes have been read
88 /// May block until (address - base) bytes have been read
95 /// May block until (address - base) bytes have been read
116 // This could be fixed by ensuring the bytes are fetched and making a copy,
126 /// Drop s bytes from the front of the stream, pushing the positions of the
127 /// remaining bytes down by s. This is used to skip past the bitcode header,
128 /// since we don't know a priori if it's present, and we can't put bytes
139 mutable std::vector<unsigned char> Bytes;
141 mutable size_t BytesRead; // Bytes read from stream
142 size_t BytesSkipped;// Bytes skipped at start of stream (e.g. wrapper/header)
146 // Fetch enough bytes such that Pos can be read or EOF is reached
149 // Most of the requests will be small, but we fetch at kChunkSize bytes
154 Bytes.resize(BytesRead + BytesSkipped + kChunkSize);
155 size_t bytes = Streamer->GetBytes(&Bytes[BytesRead + BytesSkipped],
157 BytesRead += bytes;
158 if (bytes < kChunkSize) {
161 if (BytesRead <= Pos) { // reached EOF/ran out of bytes