Home
last modified time | relevance | path

Searched refs:MemoryStream (Results 1 – 25 of 48) sorted by relevance

12

/external/libbrillo/brillo/streams/
Dmemory_stream.cc16 MemoryStream::MemoryStream( in MemoryStream() function in brillo::MemoryStream
21 StreamPtr MemoryStream::OpenRef(const void* buffer, in OpenRef()
29 StreamPtr MemoryStream::OpenCopyOf(const void* buffer, in OpenCopyOf()
38 StreamPtr MemoryStream::OpenRef(const std::string& buffer, ErrorPtr* error) { in OpenRef()
44 StreamPtr MemoryStream::OpenCopyOf(std::string buffer, ErrorPtr* error) { in OpenCopyOf()
50 StreamPtr MemoryStream::OpenRef(const char* buffer, ErrorPtr* error) { in OpenRef()
54 StreamPtr MemoryStream::OpenCopyOf(const char* buffer, ErrorPtr* error) { in OpenCopyOf()
58 StreamPtr MemoryStream::Create(size_t reserve_size, ErrorPtr* error) { in Create()
64 StreamPtr MemoryStream::CreateRef(std::string* buffer, ErrorPtr* error) { in CreateRef()
70 StreamPtr MemoryStream::CreateRefForAppend(std::string* buffer, in CreateRefForAppend()
[all …]
Dmemory_stream_unittest.cc51 stream_.reset(new MemoryStream{std::move(container), 0}); in SetUp()
66 std::unique_ptr<MemoryStream> stream_;
204 TEST(MemoryStream, OpenBinary) { in TEST() argument
206 StreamPtr stream = MemoryStream::OpenRef(buffer, sizeof(buffer), nullptr); in TEST()
218 TEST(MemoryStream, OpenBinaryCopy) { in TEST() argument
220 StreamPtr stream = MemoryStream::OpenCopyOf(buffer, sizeof(buffer), nullptr); in TEST()
232 TEST(MemoryStream, OpenString) { in TEST() argument
234 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
244 TEST(MemoryStream, OpenStringCopy) { in TEST() argument
246 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
[all …]
Dmemory_stream.h51 class BRILLO_EXPORT MemoryStream : public Stream {
194 MemoryStream(
207 DISALLOW_COPY_AND_ASSIGN(MemoryStream);
/external/puffin/src/
Dmemory_stream.cc18 UniqueStreamPtr MemoryStream::CreateForRead(const Buffer& memory) { in CreateForRead()
19 return UniqueStreamPtr(new MemoryStream(&memory, nullptr)); in CreateForRead()
22 UniqueStreamPtr MemoryStream::CreateForWrite(Buffer* memory) { in CreateForWrite()
23 return UniqueStreamPtr(new MemoryStream(nullptr, memory)); in CreateForWrite()
26 MemoryStream::MemoryStream(const Buffer* read_memory, Buffer* write_memory) in MemoryStream() function in puffin::MemoryStream
32 bool MemoryStream::GetSize(uint64_t* size) const { in GetSize()
38 bool MemoryStream::GetOffset(uint64_t* offset) const { in GetOffset()
43 bool MemoryStream::Seek(uint64_t offset) { in Seek()
52 bool MemoryStream::Read(void* buffer, size_t length) { in Read()
61 bool MemoryStream::Write(const void* buffer, size_t length) { in Write()
[all …]
Dmemory_stream.h17 class MemoryStream : public StreamInterface {
19 ~MemoryStream() override = default;
38 MemoryStream(const Buffer* read_memory, Buffer* write_memory);
52 DISALLOW_COPY_AND_ASSIGN(MemoryStream);
Dstream_unittest.cc163 auto read_stream = MemoryStream::CreateForRead(buf); in TEST_F()
167 auto write_stream = MemoryStream::CreateForWrite(&buf); in TEST_F()
200 MemoryStream::CreateForRead(kDeflatesSample1), puffer, in TEST_F()
209 MemoryStream::CreateForRead(kDeflatesSample1), puffer, in TEST_F()
219 MemoryStream::CreateForWrite(&buf), huffer, kPuffsSample1.size(), in TEST_F()
258 ExtentStream::CreateForRead(MemoryStream::CreateForRead(buf), extents); in TEST_F()
270 MemoryStream::CreateForWrite(&buf2), extents); in TEST_F()
Dfuzzer.cc28 using puffin::MemoryStream;
111 auto src = MemoryStream::CreateForRead(src_buffer); in FuzzPuffPatch()
112 auto dst = MemoryStream::CreateForWrite(&dst_buffer); in FuzzPuffPatch()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs51 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
61 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
77 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
86 MemoryStream rawOutput = new MemoryStream(); in AssertWriteVarint()
136 MemoryStream rawOutput = new MemoryStream(); in AssertWriteLittleEndian32()
145 rawOutput = new MemoryStream(); in AssertWriteLittleEndian32()
159 MemoryStream rawOutput = new MemoryStream(); in AssertWriteLittleEndian64()
168 rawOutput = new MemoryStream(); in AssertWriteLittleEndian64()
203 MemoryStream rawOutput = new MemoryStream(); in WriteWholeMessage_VaryingBlockSizes()
295 MemoryStream ms = new MemoryStream(child); in TestCodedInputOutputPosition()
[all …]
DCodedInputStreamTest.cs83 MemoryStream memoryStream = new MemoryStream(); in AssertReadVarint()
107 …ws<InvalidProtocolBufferException>(() => CodedInputStream.ReadRawVarint32(new MemoryStream(data))); in AssertReadVarintFailure()
271 MemoryStream ms = new MemoryStream(); in ReadMaliciouslyLargeBlob()
323 …CodedInputStream input = CodedInputStream.CreateWithLimits(new MemoryStream(data64.ToByteArray()),… in MaliciousRecursion()
332MemoryStream ms = new MemoryStream(SampleMessages.CreateFullTestAllTypes().ToByteArray()); in SizeLimit()
345 MemoryStream ms = new MemoryStream(); in ReadInvalidUtf8()
367 private sealed class SmallBlockInputStream : MemoryStream
396 using (var ms = new MemoryStream()) in TestSlowPathAvoidance()
436 var stream = new MemoryStream(); in SkipGroup()
480 var stream = new MemoryStream(); in SkipGroup_WrongEndGroupTag()
[all …]
DFieldCodecTest.cs124 var stream = new MemoryStream(); in TestRoundTripRaw()
136 var stream = new MemoryStream(); in TestRoundTripWithTag()
149 var stream = new MemoryStream(); in TestCalculateSizeWithTag()
159 var stream = new MemoryStream(); in TestDefaultValue()
DGeneratedMessageTest.cs257 var memoryStream = new MemoryStream(); in MapWithOnlyValue()
275 var memoryStream = new MemoryStream(); in MapWithOnlyKey_PrimitiveValue()
292 var memoryStream = new MemoryStream(); in MapWithOnlyKey_MessageValue()
309 var memoryStream = new MemoryStream(); in MapIgnoresExtraFieldsWithinEntryMessages()
336 var memoryStream = new MemoryStream(); in MapFieldOrderIsIrrelevant()
360 var memoryStream = new MemoryStream(); in MapNonContiguousEntries()
411 var memoryStream = new MemoryStream(); in DuplicateKeys_LastEntryWins()
644 var stream = new MemoryStream(); in IgnoreUnknownFields_RealDataStillRead()
685 var stream = new MemoryStream(); in ExtraEndGroupThrows()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs42 using MemoryStream = System.IO.MemoryStream; typedef
68 MemoryStream grammarStream = new MemoryStream(grammarStrBuffer); in TestANTLRInputStreamConstructorDoesNotHang()
76 MemoryStream grammarStream = new MemoryStream(new byte[] { }); in TestSizeOnEmptyANTLRInputStream()
87 MemoryStream grammarStream = new MemoryStream(grammarStrBuffer); in TestSizeOnANTLRInputStream()
98 MemoryStream grammarStream = new MemoryStream(grammarStrBuffer); in TestConsumeAndIndexOnANTLRInputStream()
121 MemoryStream grammarStream = new MemoryStream(grammarStrBuffer); in TestConsumeAllCharactersInAnANTLRInputStream()
137 MemoryStream grammarStream = new MemoryStream(buffer); in TestConsumeOnANTLRInputStream()
200 MemoryStream grammarStream = new MemoryStream(buffer); in TestResetOnANTLRInputStream()
238 MemoryStream grammarStream = new MemoryStream(buffer); in TestSubstringOnANTLRInputStream()
258 MemoryStream grammarStream = new MemoryStream(buffer); in TestSeekOnANTLRInputStream()
/external/brotli/csharp/org/brotli/dec/
DDecodeTest.cs19 System.IO.MemoryStream input = new System.IO.MemoryStream(data); in Decompress()
20 System.IO.MemoryStream output = new System.IO.MemoryStream(); in Decompress()
56 System.IO.MemoryStream input = new System.IO.MemoryStream(data); in DecompressWithDictionary()
57 System.IO.MemoryStream output = new System.IO.MemoryStream(); in DecompressWithDictionary()
DSynthTest.cs19 System.IO.MemoryStream input = new System.IO.MemoryStream(data); in Decompress()
20 System.IO.MemoryStream output = new System.IO.MemoryStream(); in Decompress()
/external/webrtc/talk/media/base/
Dvideoframe_unittest.h101 rtc::scoped_ptr<rtc::MemoryStream> ms(LoadSample(filename)); in LoadFrame()
105 bool LoadFrame(rtc::MemoryStream* ms, in LoadFrame()
113 bool LoadFrame(rtc::MemoryStream* ms, in LoadFrame()
160 rtc::MemoryStream* LoadSample(const std::string& filename) { in LoadSample()
172 rtc::scoped_ptr<rtc::MemoryStream> ms( in LoadSample()
173 new rtc::MemoryStream()); in LoadSample()
213 rtc::MemoryStream* CreateYuv422Sample(uint32_t fourcc, in CreateYuv422Sample()
221 rtc::scoped_ptr<rtc::MemoryStream> ms( in CreateYuv422Sample()
222 new rtc::MemoryStream); in CreateYuv422Sample()
242 rtc::MemoryStream* CreateYuvSample(uint32_t width, in CreateYuvSample()
[all …]
Drtpdump_unittest.cc79 rtc::MemoryStream stream; in TEST()
120 rtc::MemoryStream stream; in TEST()
158 rtc::MemoryStream stream; in TEST()
180 rtc::MemoryStream stream; in TEST()
209 rtc::MemoryStream stream; in TEST()
235 rtc::MemoryStream stream; in TEST()
246 rtc::MemoryStream stream; in TEST()
257 rtc::MemoryStream stream; in TEST()
279 rtc::MemoryStream stream; in TEST()
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs269 System.IO.MemoryStream propStream = new System.IO.MemoryStream(); in LzmaBenchmark()
289 MemoryStream inStream = new MemoryStream(rg.Buffer, 0, (int)rg.BufferSize); in LzmaBenchmark()
290 MemoryStream compressedStream = new MemoryStream((int)kCompressedBufferSize); in LzmaBenchmark()
/external/brotli/csharp/
Dsharpen.cfg11 -typeMapping java.io.ByteArrayInputStream System.IO.MemoryStream
12 -typeMapping java.io.ByteArrayOutputStream System.IO.MemoryStream
/external/protobuf/csharp/src/AddressBook/
DSampleUsage.cs51 using (MemoryStream stream = new MemoryStream()) in Main()
/external/webrtc/webrtc/base/
Dmultipart_unittest.cc64 rtc::scoped_ptr<rtc::MemoryStream> stream( in TEST()
65 new rtc::MemoryStream(kTestStreamContent)); in TEST()
73 new rtc::MemoryStream(kTestStreamContent), in TEST()
Dstream.cc621 MemoryStream::MemoryStream() in MemoryStream() function in rtc::MemoryStream
625 MemoryStream::MemoryStream(const char* data) in MemoryStream() function in rtc::MemoryStream
630 MemoryStream::MemoryStream(const void* data, size_t length) in MemoryStream() function in rtc::MemoryStream
635 MemoryStream::~MemoryStream() { in ~MemoryStream()
639 void MemoryStream::SetData(const void* data, size_t length) { in SetData()
648 StreamResult MemoryStream::DoReserve(size_t size, int* error) { in DoReserve()
Dlinux_unittest.cc72 MemoryStream *test_stream = new MemoryStream( in TEST()
Dstream.h466 class MemoryStream : public MemoryStreamBase {
468 MemoryStream();
469 explicit MemoryStream(const char* data); // Calls SetData(data, strlen(data))
470 MemoryStream(const void* data, size_t length); // Calls SetData(data, length)
471 ~MemoryStream() override;
/external/libbrillo/brillo/http/
Dhttp_form_data.cc87 streams->push_back(MemoryStream::OpenCopyOf(data_, nullptr)); in ExtractDataStreams()
130 streams->push_back(MemoryStream::OpenCopyOf(data, nullptr)); in ExtractDataStreams()
134 streams->push_back(MemoryStream::OpenRef("\r\n", nullptr)); in ExtractDataStreams()
138 streams->push_back(MemoryStream::OpenCopyOf(data, nullptr)); in ExtractDataStreams()
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs224 var stream = new MemoryStream(); in AddEntriesFrom_PackedInt32()
252 var stream = new MemoryStream(); in AddEntriesFrom_NonPackedInt32()
278 var stream = new MemoryStream(); in AddEntriesFrom_String()
304 var stream = new MemoryStream(); in AddEntriesFrom_Message()
326 var stream = new MemoryStream(); in WriteTo_PackedInt32()
347 var stream = new MemoryStream(); in WriteTo_NonPackedInt32()
368 var stream = new MemoryStream(); in WriteTo_String()
391 var stream = new MemoryStream(); in WriteTo_Message()

12