Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DMemoryBuffer.cpp217 Expected<size_t> ReadBytes = sys::fs::readNativeFile( in getMemoryBufferForStream() local
219 if (!ReadBytes) in getMemoryBufferForStream()
220 return errorToErrorCode(ReadBytes.takeError()); in getMemoryBufferForStream()
221 if (*ReadBytes == 0) in getMemoryBufferForStream()
223 Buffer.set_size(Buffer.size() + *ReadBytes); in getMemoryBufferForStream()
466 Expected<size_t> ReadBytes = in getOpenFileImpl() local
468 if (!ReadBytes) in getOpenFileImpl()
469 return errorToErrorCode(ReadBytes.takeError()); in getOpenFileImpl()
470 if (*ReadBytes == 0) { in getOpenFileImpl()
474 ToRead = ToRead.drop_front(*ReadBytes); in getOpenFileImpl()
[all …]
/third_party/flutter/engine/flutter/shell/platform/common/cpp/client_wrapper/
Dstandard_codec.cc96 stream->ReadBytes(reinterpret_cast<uint8_t*>(&int_value), 4); in ReadValue()
101 stream->ReadBytes(reinterpret_cast<uint8_t*>(&long_value), 8); in ReadValue()
107 stream->ReadBytes(reinterpret_cast<uint8_t*>(&double_value), 8); in ReadValue()
115 stream->ReadBytes(reinterpret_cast<uint8_t*>(&string_value[0]), size); in ReadValue()
217 stream->ReadBytes(reinterpret_cast<uint8_t*>(&value), 2); in ReadSize()
221 stream->ReadBytes(reinterpret_cast<uint8_t*>(&value), 4); in ReadSize()
251 stream->ReadBytes(reinterpret_cast<uint8_t*>(vector.data()), in ReadVector()
Dbyte_stream_wrappers.h38 void ReadBytes(uint8_t* buffer, size_t length) { in ReadBytes() function
/third_party/skia/third_party/externals/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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()
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs70 byte[] inputData = input.ReadBytes(size.Value); in RunTest()
165 byte[] bytes = input.ReadBytes(4); in ReadInt32()
DConformance.cs709 ProtobufPayload = input.ReadBytes(); in MergeFrom()
762 ProtobufPayload = input.ReadBytes(); in IBufferMessage.InternalMergeFrom()
1245 ProtobufPayload = input.ReadBytes(); in MergeFrom()
1291 ProtobufPayload = input.ReadBytes(); in IBufferMessage.InternalMergeFrom()
/third_party/protobuf/csharp/src/Google.Protobuf/
DParseContext.cs247 public ByteString ReadBytes() in ReadBytes() method
249 return ParsingPrimitives.ReadBytes(ref buffer, ref state); in ReadBytes()
DCodedInputStream.cs469 public ByteString ReadBytes() in ReadBytes() method in Google.Protobuf.CodedInputStream
472 return ParsingPrimitives.ReadBytes(ref span, ref state); in ReadBytes()
DUnknownFieldSet.cs230 ByteString bytes = ctx.ReadBytes(); in MergeFieldFrom()
/third_party/protobuf/csharp/src/Google.Protobuf.Benchmarks/
DParseRawPrimitivesBenchmark.cs333 sum += cis.ReadBytes().Length; in ParseBytes_CodedInputStream()
346 sum += ctx.ReadBytes().Length; in ParseBytes_ParseContext()
359 sum += ctx.ReadBytes().Length; in ParseBytes_ParseContext_MultipleSegments()
/third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DAny.cs330 Value = input.ReadBytes(); in MergeFrom()
352 Value = input.ReadBytes(); in IBufferMessage.InternalMergeFrom()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs383 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadMaliciouslyLargeBlob()
403 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadBlobGreaterThanCurrentLimit()
411 ctx.ReadBytes(); in ReadBlobGreaterThanCurrentLimit()
632 Assert.Throws<InvalidProtocolBufferException>(() => input.ReadBytes()); in ReadNegativeSizedBytesThrowsInvalidProtocolBufferException()
683 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
687 Assert.AreEqual(100, input.ReadBytes().Length); in TestSlowPathAvoidance()
/third_party/skia/third_party/externals/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()
/third_party/flutter/skia/third_party/externals/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()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/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()
DCodedOutputStreamTest.cs366 ByteString bstr = cin.ReadBytes(); in TestCodedInputOutputPosition()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dreadable_font_data.h96 virtual int32_t ReadBytes(int32_t index,
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/data/
Dreadable_font_data.h96 virtual int32_t ReadBytes(int32_t index,
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/
Dfont_factory.cc208 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/
Dfont_factory.cc208 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
/third_party/protobuf/src/google/protobuf/
Dwire_format_lite.cc558 bool WireFormatLite::ReadBytes(io::CodedInputStream* input, in ReadBytes() function in google::protobuf::internal::WireFormatLite
563 bool WireFormatLite::ReadBytes(io::CodedInputStream* input, std::string** p) { in ReadBytes() function in google::protobuf::internal::WireFormatLite

12