Home
last modified time | relevance | path

Searched refs:BinaryReader (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/js/binary/
Dreader.js67 jspb.BinaryReader = function(opt_bytes, opt_start, opt_length) { class in jspb
111 jspb.BinaryReader.instanceCache_ = [];
123 jspb.BinaryReader.alloc =
125 if (jspb.BinaryReader.instanceCache_.length) {
126 var newReader = jspb.BinaryReader.instanceCache_.pop();
132 return new jspb.BinaryReader(opt_bytes, opt_start, opt_length);
145 jspb.BinaryReader.prototype.alloc = jspb.BinaryReader.alloc;
151 jspb.BinaryReader.prototype.free = function() {
158 if (jspb.BinaryReader.instanceCache_.length < 100) {
159 jspb.BinaryReader.instanceCache_.push(this);
[all …]
Dreader_test.js65 jspb.BinaryReader.instanceCache_ = [];
78 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
83 jspb.BinaryReader.alloc().free();
86 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
89 var reader = jspb.BinaryReader.alloc(buffer);
92 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
98 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
104 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
110 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
116 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
[all …]
Dwriter_test.js162 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
274 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
335 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
358 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Dreader_test.js65 jspb.BinaryReader.instanceCache_ = [];
78 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
83 jspb.BinaryReader.alloc().free();
86 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
89 var reader = jspb.BinaryReader.alloc(buffer);
92 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
98 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
104 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
110 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
116 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Dreader_test.js65 jspb.BinaryReader.instanceCache_ = [];
78 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
83 jspb.BinaryReader.alloc().free();
86 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
89 var reader = jspb.BinaryReader.alloc(buffer);
92 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
98 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
104 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
110 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
116 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
[all …]
/third_party/skia/experimental/skrive/src/reader/
DBinaryReader.cpp18 class BinaryReader final : public StreamReader { class
20 explicit BinaryReader(std::unique_ptr<SkStreamAsset> stream) in BinaryReader() function in skrive::internal::__anon9f14aa680111::BinaryReader
150 return std::make_unique<BinaryReader>(std::move(stream)); in MakeBinaryStreamReader()
/third_party/protobuf/js/commonjs/
Dexport.js22 exports.BinaryReader = jspb.BinaryReader;
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs49 var input = new BinaryReader(Console.OpenStandardInput()); in Main()
63 … private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistry typeRegistry) in RunTest()
163 private static int? ReadInt32(BinaryReader input) in ReadInt32()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DAbstractSchemaTest.java78 Reader reader = BinaryReader.newInstance(invalidUtf8Bytes, /* bufferIsImmutable= */ true); in invalidUtf8StringParsing()
127 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(serializedBytes), true); in roundtrip()
DExperimentalSerializationUtil.java93 msg, BinaryReader.newInstance(ByteBuffer.wrap(data), true), extensionRegistry); in fromByteArray()
/third_party/zlib/contrib/dotzlib/DotZLib/
DUnitTests.cs260 BinaryReader reader = new BinaryReader(gzIn); in GZipStream_WriteRead()
/third_party/skia/experimental/skrive/
Dskrive.gni23 "$_src/reader/BinaryReader.cpp",
DBUILD.gn41 "tests/BinaryReader.cpp",
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DBinaryReader.java52 abstract class BinaryReader implements Reader { class
67 public static BinaryReader newInstance(ByteBuffer buffer, boolean bufferIsImmutable) { in newInstance()
77 private BinaryReader() {} in BinaryReader() method in BinaryReader
91 private static final class SafeHeapReader extends BinaryReader {
DExtensionSchemaLite.java532 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(data.toByteArray()), true); in parseMessageSetItem()
DExtensionSchemaFull.java534 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(data.toByteArray()), true); in parseMessageSetItem()
/third_party/protobuf/java/core/
DBUILD12 "src/main/java/com/google/protobuf/BinaryReader.java",
/third_party/protobuf/
DMakefile.am287 java/core/src/main/java/com/google/protobuf/BinaryReader.java \