Home
last modified time | relevance | path

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

/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DMessageNano.java168 final int serializedSize = a.getSerializedSize(); in messageNanoEquals() local
169 if (b.getSerializedSize() != serializedSize) { in messageNanoEquals()
172 final byte[] aByteArray = new byte[serializedSize]; in messageNanoEquals()
173 final byte[] bByteArray = new byte[serializedSize]; in messageNanoEquals()
174 toByteArray(a, aByteArray, 0, serializedSize); in messageNanoEquals()
175 toByteArray(b, bByteArray, 0, serializedSize); in messageNanoEquals()
/external/icu/icu4c/source/test/cintltst/
Dspooftest.c192 int32_t serializedSize = 0; in TestUSpoofCAPI() local
199 serializedSize = uspoof_serialize(sc, NULL, 0, &status); in TestUSpoofCAPI()
201 TEST_ASSERT(serializedSize > 0); in TestUSpoofCAPI()
205 buf = (char *)malloc(serializedSize + 10); in TestUSpoofCAPI()
207 buf[serializedSize] = 42; in TestUSpoofCAPI()
208 uspoof_serialize(sc, buf, serializedSize, &status); in TestUSpoofCAPI()
210 TEST_ASSERT_EQ(42, buf[serializedSize]); in TestUSpoofCAPI()
213 sc2 = uspoof_openFromSerialized(buf, serializedSize+10, &actualLength, &status); in TestUSpoofCAPI()
216 TEST_ASSERT_EQ(serializedSize, actualLength); in TestUSpoofCAPI()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
DDecoderConfigDescriptor.java108 public int serializedSize() { in serializedSize() method in DecoderConfigDescriptor
109 return 15 + audioSpecificInfo.serializedSize(); in serializedSize()
113 ByteBuffer out = ByteBuffer.allocate(serializedSize()); in serialize()
115 IsoTypeWriter.writeUInt8(out, serializedSize() - 2); in serialize()
DESDescriptor.java157 public int serializedSize() { in serializedSize() method in ESDescriptor
169 out += decoderConfigDescriptor.serializedSize(); in serializedSize()
170 out += slConfigDescriptor.serializedSize(); in serializedSize()
178 …ByteBuffer out = ByteBuffer.allocate(serializedSize()); // Usually is around 30 bytes, so 200 shou… in serialize()
180 IsoTypeWriter.writeUInt8(out, serializedSize() - 2); // Not OK for longer sizes! in serialize()
DDecoderSpecificInfo.java44 public int serializedSize() { in serializedSize() method in DecoderSpecificInfo
DSLConfigDescriptor.java76 public int serializedSize() { in serializedSize() method in SLConfigDescriptor
DAudioSpecificConfig.java511 public int serializedSize() { in serializedSize() method in AudioSpecificConfig
522 ByteBuffer out = ByteBuffer.allocate(serializedSize()); in serialize()
524 IsoTypeWriter.writeUInt8(out, serializedSize() - 2); in serialize()
/external/protobuf/objectivec/Tests/
DGPBWireFormatTests.m49 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length);
61 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length);
77 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length);
117 size_t allSet = [self allSetRepeatedCount:kGPBDefaultRepeatCount].serializedSize;
118 size_t extensionSet = [self allExtensionsSetRepeatedCount:kGPBDefaultRepeatCount].serializedSize;
DGPBUnknownFieldSetTest.m168 XCTAssertEqual(message.serializedSize, (size_t)0);
Dunittest_objc.proto112 serializedSize = 6; enumerator
DGPBCodedInputStreamTests.m184 XCTAssertEqual(message.serializedSize, (size_t)rawBytes.length);
/external/protobuf/objectivec/
DGPBUnknownField_PackagePrivate.h42 - (size_t)serializedSize;
DGPBUnknownFieldSet_PackagePrivate.h44 - (size_t)serializedSize;
DGPBMessage.h254 - (size_t)serializedSize;
DGPBUnknownFieldSet.m225 *result += [field serializedSize];
228 - (size_t)serializedSize { method in const
272 NSMutableData *data = [NSMutableData dataWithLength:self.serializedSize];
DGPBMessage.m1167 NSMutableData *data = [NSMutableData dataWithLength:[self serializedSize]];
1176 // serializedSize was wrong.
1188 size_t serializedSize = [self serializedSize];
1189 size_t varintSize = GPBComputeRawVarint32SizeForInteger(serializedSize);
1191 [NSMutableData dataWithLength:(serializedSize + varintSize)];
1200 // serializedSize was wrong.
1252 [output writeRawVarintSizeTAs32:[self serializedSize]];
2807 - (size_t)serializedSize { method in GPBMessage
2950 result += [unknownFields_ serializedSize];
DGPBCodedOutputStream.m358 GPBWriteRawVarint32(&state_, (int32_t)[value serializedSize]);
1045 return [value serializedSize];
1049 return value.serializedSize;
1053 size_t size = [value serializedSize];
DGPBUnknownField.m152 - (size_t)serializedSize { method