Home
last modified time | relevance | path

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

12

/external/cronet/third_party/protobuf/js/binary/
Dreader.js68 jspb.BinaryReader = function(opt_bytes, opt_start, opt_length) { class in jspb
112 jspb.BinaryReader.instanceCache_ = [];
124 jspb.BinaryReader.alloc =
126 if (jspb.BinaryReader.instanceCache_.length) {
127 var newReader = jspb.BinaryReader.instanceCache_.pop();
133 return new jspb.BinaryReader(opt_bytes, opt_start, opt_length);
146 jspb.BinaryReader.prototype.alloc = jspb.BinaryReader.alloc;
152 jspb.BinaryReader.prototype.free = function() {
159 if (jspb.BinaryReader.instanceCache_.length < 100) {
160 jspb.BinaryReader.instanceCache_.push(this);
[all …]
Dreader_test.js66 jspb.BinaryReader.instanceCache_ = [];
79 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
84 jspb.BinaryReader.alloc().free();
87 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
90 var reader = jspb.BinaryReader.alloc(buffer);
93 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
99 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
105 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
111 assertEquals(0, jspb.BinaryReader.instanceCache_.length);
117 assertEquals(1, jspb.BinaryReader.instanceCache_.length);
[all …]
Dwriter_test.js205 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
317 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
378 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
401 var reader = jspb.BinaryReader.alloc(writer.getResultBuffer());
/external/cronet/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 …]
/external/cronet/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 …]
/external/cronet/third_party/protobuf/js/commonjs/
Dexport.js21 exports.BinaryReader = jspb.BinaryReader;
/external/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()
/external/cronet/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()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DAbstractSchemaTest.java76 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()
/external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DAbstractSchemaTest.java76 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()
/external/grpc-grpc/examples/node/static_codegen/route_guide/
Droute_guide_pb.js81 var reader = new jspb.BinaryReader(bytes);
267 var reader = new jspb.BinaryReader(bytes);
469 var reader = new jspb.BinaryReader(bytes);
663 var reader = new jspb.BinaryReader(bytes);
859 var reader = new jspb.BinaryReader(bytes);
/external/grpc-grpc/examples/node/static_codegen/
Dhelloworld_pb.js77 var reader = new jspb.BinaryReader(bytes);
236 var reader = new jspb.BinaryReader(bytes);
/external/rust/crates/libz-sys/src/zlib/contrib/dotzlib/DotZLib/
DUnitTests.cs260 BinaryReader reader = new BinaryReader(gzIn); in GZipStream_WriteRead()
/external/llvm/test/tools/llvm-readobj/Inputs/
Drelocs.py87 class BinaryReader: class
258 f = BinaryReader(path)
325 f = BinaryReader(path)
366 f = BinaryReader(filename)
/external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DBinaryReader.java53 abstract class BinaryReader implements Reader { class
68 public static BinaryReader newInstance(ByteBuffer buffer, boolean bufferIsImmutable) { in newInstance()
78 private BinaryReader() {} in BinaryReader() method in BinaryReader
92 private static final class SafeHeapReader extends BinaryReader {
DExtensionSchemaFull.java535 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(data.toByteArray()), true); in parseMessageSetItem()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DBinaryReader.java53 abstract class BinaryReader implements Reader { class
68 public static BinaryReader newInstance(ByteBuffer buffer, boolean bufferIsImmutable) { in newInstance()
78 private BinaryReader() {} in BinaryReader() method in BinaryReader
92 private static final class SafeHeapReader extends BinaryReader {
DExtensionSchemaFull.java535 Reader reader = BinaryReader.newInstance(ByteBuffer.wrap(data.toByteArray()), true); in parseMessageSetItem()
/external/protobuf/
Dbuild.gradle43 include 'com/google/protobuf/BinaryReader.java'
DAndroid.bp509 "java/core/src/main/java/com/google/protobuf/BinaryReader.java",
DMakefile.am302 java/core/src/main/java/com/google/protobuf/BinaryReader.java \
/external/protobuf/java/core/
DBUILD.bazel19 "src/main/java/com/google/protobuf/BinaryReader.java",
/external/cronet/third_party/protobuf/java/core/
DBUILD17 "src/main/java/com/google/protobuf/BinaryReader.java",

12