Home
last modified time | relevance | path

Searched refs:ReadBytes (Results 1 – 25 of 65) sorted by relevance

123

/external/google-breakpad/src/common/mac/
Dmacho_walker.cc103 bool MachoWalker::ReadBytes(void *buffer, size_t size, off_t offset) { in ReadBytes() function in MacFileUtilities::MachoWalker
136 if (!ReadBytes(&magic, sizeof(magic), 0)) in FindHeader()
155 if (!ReadBytes(&header, sizeof(header), 0)) in FindHeader()
173 if (!ReadBytes(&fat, sizeof(fat), offset)) in FindHeader()
184 if (!ReadBytes(&arch, sizeof(arch), offset)) in FindHeader()
206 if (!ReadBytes(&header, sizeof(header), offset)) in WalkHeaderAtOffset()
232 if (!ReadBytes(&header, sizeof(header), offset)) in WalkHeader64AtOffset()
254 if (!ReadBytes(&cmd, sizeof(cmd), offset)) in WalkHeaderCore()
Dmacho_id.cc148 if (!walker->ReadBytes(buffer, buffer_size, file_offset)) in Update()
260 if (!walker->ReadBytes(&seg, sizeof(seg), offset)) in WalkerCB()
277 if (!walker->ReadBytes(&sec, sizeof(sec), offset)) in WalkerCB()
293 if (!walker->ReadBytes(&seg64, sizeof(seg64), offset)) in WalkerCB()
310 if (!walker->ReadBytes(&sec64, sizeof(sec64), offset)) in WalkerCB()
338 if (!walker->ReadBytes(uuid_cmd, sizeof(struct breakpad_uuid_command), in UUIDWalkerCB()
358 if (!walker->ReadBytes(dylib_cmd, sizeof(struct dylib_command), offset)) in IDWalkerCB()
Dmacho_walker.h70 bool ReadBytes(void *buffer, size_t size, off_t offset);
/external/webrtc/webrtc/base/
Dbytebuffer.cc72 return ReadBytes(reinterpret_cast<char*>(val), 1); in ReadUInt8()
79 if (!ReadBytes(reinterpret_cast<char*>(&v), 2)) { in ReadUInt16()
96 if (!ReadBytes(read_into, 3)) { in ReadUInt24()
108 if (!ReadBytes(reinterpret_cast<char*>(&v), 4)) { in ReadUInt32()
120 if (!ReadBytes(reinterpret_cast<char*>(&v), 8)) { in ReadUInt64()
140 bool ByteBuffer::ReadBytes(char* val, size_t len) { in ReadBytes() function in rtc::ByteBuffer
Dbytebuffer_unittest.cc176 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST()
186 EXPECT_TRUE(buffer.ReadBytes(read_bytes, 3)); in TEST()
Dbytebuffer.h55 bool ReadBytes(char* val, size_t len);
/external/swiftshader/third_party/LLVM/lib/Support/
DMemoryBuffer.cpp362 ssize_t ReadBytes; in getSTDIN() local
366 ReadBytes = read(0, Buffer.end(), ChunkSize); in getSTDIN()
367 if (ReadBytes == -1) { in getSTDIN()
371 Buffer.set_size(Buffer.size() + ReadBytes); in getSTDIN()
372 } while (ReadBytes != 0); in getSTDIN()
/external/google-breakpad/src/processor/
Dminidump.cc451 if (!minidump_->ReadBytes(context_amd64.get(), in Read()
553 if (!minidump_->ReadBytes(&context_flags, sizeof(context_flags))) { in Read()
587 if (!minidump_->ReadBytes(context_after_flags, in Read()
650 if (!minidump_->ReadBytes(&context_flags, sizeof(context_flags))) { in Read()
684 if (!minidump_->ReadBytes(context_after_flags, in Read()
730 if (!minidump_->ReadBytes(&context_flags, sizeof(context_flags))) { in Read()
781 if (!minidump_->ReadBytes(context_after_flags, in Read()
854 if (!minidump_->ReadBytes(context_after_flags, in Read()
930 if (!minidump_->ReadBytes(context_after_flags, in Read()
986 if (!minidump_->ReadBytes(context_after_flags, in Read()
[all …]
/external/sfntly/cpp/src/test/
Dfont_parsing_test.cc67 wfd->ReadBytes(0, &(b[0]), 0, TTF_LENGTH[SAMPLE_TTF_FEAT]); in TestFontParsing()
93 wfd1->ReadBytes(0, &(b1[0]), 0, TTF_LENGTH[i]); in TestFontParsing()
94 wfd2->ReadBytes(0, &(b2[0]), 0, TTF_LENGTH[i]); in TestFontParsing()
Dfont_data_test.cc158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in ReadFontDataWithBuffer()
173 rfd->ReadBytes(index, &((*b)[0]), index, actual_window_size); in ReadFontDataWithSlidingWindow()
192 int32_t bytesRead = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in WriteFontDataWithBuffer()
205 int32_t bytes_read = rfd->ReadBytes(index, &(b[0]), index, sliding_size); in WriteFontDataWithSlidingWindow()
/external/llvm/lib/Support/
DMemoryBuffer.cpp239 ssize_t ReadBytes; in getMemoryBufferForStream() local
243 ReadBytes = read(FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
244 if (ReadBytes == -1) { in getMemoryBufferForStream()
248 Buffer.set_size(Buffer.size() + ReadBytes); in getMemoryBufferForStream()
249 } while (ReadBytes != 0); in getMemoryBufferForStream()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp239 ssize_t ReadBytes; in getMemoryBufferForStream() local
243 ReadBytes = read(FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
244 if (ReadBytes == -1) { in getMemoryBufferForStream()
248 Buffer.set_size(Buffer.size() + ReadBytes); in getMemoryBufferForStream()
249 } while (ReadBytes != 0); in getMemoryBufferForStream()
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs68 byte[] inputData = input.ReadBytes(size.Value); in RunTest()
129 byte[] bytes = input.ReadBytes(4); in ReadInt32()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DMemoryBuffer.cpp215 ssize_t ReadBytes; in getMemoryBufferForStream() local
219 ReadBytes = sys::RetryAfterSignal(-1, ::read, FD, Buffer.end(), ChunkSize); in getMemoryBufferForStream()
220 if (ReadBytes == -1) in getMemoryBufferForStream()
222 Buffer.set_size(Buffer.size() + ReadBytes); in getMemoryBufferForStream()
223 } while (ReadBytes != 0); in getMemoryBufferForStream()
/external/v8/src/wasm/
Dstreaming-decoder.cc33 state_->ReadBytes(this, bytes.SubVector(current, bytes.size())); in OnBytesReceived()
46 size_t StreamingDecoder::DecodingState::ReadBytes(StreamingDecoder* streaming, in ReadBytes() function in v8::internal::wasm::StreamingDecoder::DecodingState
104 size_t ReadBytes(StreamingDecoder* streaming,
251 size_t StreamingDecoder::DecodeVarInt32::ReadBytes( in ReadBytes() function in v8::internal::wasm::StreamingDecoder::DecodeVarInt32
/external/libchrome/base/
Dbig_endian_unittest.cc28 EXPECT_TRUE(reader.ReadBytes(buf, sizeof(buf))); in TEST()
66 EXPECT_FALSE(reader.ReadBytes(buf, 2)); in TEST()
Dpickle_unittest.cc499 TEST(PickleTest, ReadBytes) { in TEST() argument
506 EXPECT_TRUE(iter.ReadBytes(&outdata_char, sizeof(data))); in TEST()
565 EXPECT_TRUE(iter.ReadBytes(&out_data, out_data_length)); in TEST()
Dbig_endian.h62 bool ReadBytes(void* out, size_t len);
/external/lzma/CPP/7zip/Archive/7z/
D7zIn.h319 void ReadBytes(Byte *data, size_t size);
373 void ReadBytes(Byte *data, size_t size) { _inByteBack->ReadBytes(data, size); } in ReadBytes() function
/external/tensorflow/tensorflow/core/util/proto/
Ddecode.h339 inline Status ReadBytes(CodedInputStream* input, int index, void* datap) { in ReadBytes() function
341 if (!WireFormatLite::ReadBytes(input, data)) { in ReadBytes()
428 return ReadBytes(input, index, datap); in ReadValue()
432 return ReadBytes(input, index, datap); in ReadValue()
434 return ReadBytes(input, index, datap); in ReadValue()
/external/protobuf/src/google/protobuf/
Dwire_format_lite.h315 static bool ReadBytes(input, string* value);
316 static bool ReadBytes(input, string** p);
684 return ReadBytes(input, value); in ReadString()
689 return ReadBytes(input, p); in ReadString()
/external/sfntly/cpp/src/sfntly/table/core/
Dos2_table.cc173 data_->ReadBytes(Offset::kPanose, &((*value)[0]), 0, 10); in Panose()
196 data_->ReadBytes(Offset::kAchVendId, &((*b)[0]), 0, 4); in AchVendId()
422 InternalReadData()->ReadBytes(Offset::kPanose, in Panose()
475 InternalReadData()->ReadBytes(Offset::kAchVendId, &((*b)[0]), 0, 4); in AchVendId()
/external/lzma/CPP/7zip/Common/
DInBuffer.h80 size_t ReadBytes(Byte *buf, size_t size);
/external/perfetto/src/tracing/core/
Dstartup_trace_writer.cc61 size_t ReadBytes(SharedMemoryABI::Chunk* target_chunk, in ReadBytes() function in perfetto::__anon6093dd690111::LocalBufferReader
343 size_t bytes_read = local_buffer_reader.ReadBytes( in CommitLocalBufferChunks()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs284 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
410 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
414 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()

123