Searched refs:ByteSize (Results 1 - 25 of 90) sorted by relevance

1234

/external/chromium_org/remoting/protocol/
H A Dmessage_serialization.cc21 int size = msg.ByteSize() + kExtraBytes;
/external/chromium_org/google_apis/gcm/base/
H A Dmcs_message.cc37 size_(protobuf.ByteSize()),
44 size_(protobuf.ByteSize()),
52 size_(protobuf->ByteSize()),
H A Dmcs_message_unittest.cc46 EXPECT_EQ(login_request->ByteSize(), message.size());
64 EXPECT_EQ(login_request->ByteSize(), message.size());
83 EXPECT_EQ(login_request->ByteSize(), message.size());
/external/chromium_org/third_party/leveldatabase/src/db/
H A Dwrite_batch_internal.h35 static size_t ByteSize(const WriteBatch* batch) { function in class:leveldb::WriteBatchInternal
/external/chromium_org/third_party/protobuf/src/google/protobuf/
H A Dmessage_lite.cc235 const int size = ByteSize(); // Force size to be cached.
240 ByteSizeConsistencyError(size, ByteSize(), end - buffer);
252 ByteSizeConsistencyError(size, ByteSize(),
279 int byte_size = ByteSize();
284 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
305 int byte_size = ByteSize();
310 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
H A Dwire_format_unittest.cc178 TEST(WireFormatTest, ByteSize) {
182 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message));
184 EXPECT_EQ(0, message.ByteSize());
185 EXPECT_EQ(0, WireFormat::ByteSize(message));
192 EXPECT_EQ(message.ByteSize(),
193 WireFormat::ByteSize(message));
195 EXPECT_EQ(0, message.ByteSize());
196 EXPECT_EQ(0, WireFormat::ByteSize(message));
203 EXPECT_EQ(message.ByteSize(), WireForma
[all...]
H A Dmessage_lite.h170 // are just simple wrappers around ByteSize() and SerializeWithCachedSizes().
211 // ByteSize() on all embedded messages. If a subclass does not override
213 virtual int ByteSize() const = 0;
216 // not have changed since the last call to ByteSize(); if it has, the results
223 // must point at a byte array of at least ByteSize() bytes.
226 // Returns the result of the last call to ByteSize(). An embedded message's
231 // ByteSize() does not automatically use the cached size when available
H A Dwire_format.h120 // Implements Message::ByteSize() via reflection. WARNING: The result
122 // will have their ByteSize() methods called, so their sizes will be cached.
125 static int ByteSize(const Message& message);
150 // will call ByteSize() for the embedded message, insuring that it caches
/external/protobuf/src/google/protobuf/
H A Dmessage_lite.cc235 const int size = ByteSize(); // Force size to be cached.
240 ByteSizeConsistencyError(size, ByteSize(), end - buffer);
252 ByteSizeConsistencyError(size, ByteSize(),
279 int byte_size = ByteSize();
284 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
305 int byte_size = ByteSize();
310 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
H A Dwire_format_unittest.cc178 TEST(WireFormatTest, ByteSize) {
182 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message));
184 EXPECT_EQ(0, message.ByteSize());
185 EXPECT_EQ(0, WireFormat::ByteSize(message));
192 EXPECT_EQ(message.ByteSize(),
193 WireFormat::ByteSize(message));
195 EXPECT_EQ(0, message.ByteSize());
196 EXPECT_EQ(0, WireFormat::ByteSize(message));
203 EXPECT_EQ(message.ByteSize(), WireForma
[all...]
H A Dmessage_lite.h163 // are just simple wrappers around ByteSize() and SerializeWithCachedSizes().
204 // ByteSize() on all embedded messages. If a subclass does not override
206 virtual int ByteSize() const = 0;
209 // not have changed since the last call to ByteSize(); if it has, the results
216 // must point at a byte array of at least ByteSize() bytes.
219 // Returns the result of the last call to ByteSize(). An embedded message's
224 // ByteSize() does not automatically use the cached size when available
/external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
H A Dwire_format.py118 # The *ByteSize() functions below return the number of bytes required to
195 + message.ByteSize())
200 + _VarUInt64ByteSizeNoTag(message.ByteSize())
201 + message.ByteSize())
214 message_size = msg.ByteSize()
230 # Private helper function for the *ByteSize() functions above.
H A Dreflection_test.py225 self.assertEquals(2, message.ByteSize())
229 self.assertEquals(3, message.ByteSize())
232 self.assertEquals(3, message.ByteSize())
236 self.assertEquals(3, message.ByteSize())
620 bytes_size_before = pb.ByteSize()
630 self.assertEqual(bytes_size_before, pb.ByteSize())
1464 self.assertEquals(proto.ByteSize(), 0)
1473 self.assertEquals(proto.ByteSize(), 0)
1621 self.assertEqual(proto.ByteSize(), len(serialized))
1849 return self.proto.ByteSize()
[all...]
H A Dencoder.py280 result += element.ByteSize()
285 return tag_size + value.ByteSize()
299 l = element.ByteSize()
305 l = value.ByteSize()
330 l = value.ByteSize()
729 local_EncodeVarint(write, element.ByteSize())
735 local_EncodeVarint(write, value.ByteSize())
765 local_EncodeVarint(write, value.ByteSize())
/external/protobuf/python/google/protobuf/internal/
H A Dwire_format.py118 # The *ByteSize() functions below return the number of bytes required to
195 + message.ByteSize())
200 + _VarUInt64ByteSizeNoTag(message.ByteSize())
201 + message.ByteSize())
214 message_size = msg.ByteSize()
230 # Private helper function for the *ByteSize() functions above.
H A Dreflection_test.py1095 self.assertEquals(proto.ByteSize(), 0)
1104 self.assertEquals(proto.ByteSize(), 0)
1224 self.assertEqual(proto.ByteSize(), len(serialized))
1436 return self.proto.ByteSize()
1439 self.assertEqual(0, self.proto.ByteSize())
1575 self.assertEqual(0, proto.ByteSize())
1579 self.assertEqual(2, proto.ByteSize())
1584 self.assertEqual(2, self.proto.ByteSize())
1586 self.assertEqual(3, self.proto.ByteSize())
1588 self.assertEqual(0, self.proto.ByteSize())
[all...]
H A Dencoder.py274 result += element.ByteSize()
279 return tag_size + value.ByteSize()
293 l = element.ByteSize()
299 l = value.ByteSize()
324 l = value.ByteSize()
646 local_EncodeVarint(write, element.ByteSize())
652 local_EncodeVarint(write, value.ByteSize())
682 local_EncodeVarint(write, value.ByteSize())
/external/chromium_org/chrome/browser/net/
H A Dprobe_message.cc89 int padding_size = probe_size - probe_packet->ByteSize();
92 DVLOG(3) << "Request size " << probe_packet->ByteSize() << " probe size "
94 DCHECK_LE(probe_size, static_cast<uint32>(probe_packet->ByteSize()));
/external/chromium_org/media/cast/logging/
H A Dlog_serializer.cc48 int proto_size = metadata.ByteSize();
72 proto_size = frame_event.ByteSize();
96 proto_size = packet_event.ByteSize();
/external/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp143 const size_t ByteSize = 1 << i; local
144 const size_t BitSize = ByteSize * 8;
145 SmallString<32> ReadName("__tsan_read" + itostr(ByteSize));
149 SmallString<32> WriteName("__tsan_write" + itostr(ByteSize));
478 const size_t ByteSize = 1 << Idx; local
479 const size_t BitSize = ByteSize * 8;
493 const size_t ByteSize = 1 << Idx; local
494 const size_t BitSize = ByteSize * 8;
511 const size_t ByteSize = 1 << Idx; local
512 const size_t BitSize = ByteSize *
525 const size_t ByteSize = 1 << Idx; local
[all...]
/external/chromium_org/third_party/protobuf/python/google/protobuf/
H A Dmessage.py246 def ByteSize(self): member in class:Message
248 Recursively calls ByteSize() on all contained messages.
/external/protobuf/python/google/protobuf/
H A Dmessage.py229 def ByteSize(self): member in class:Message
231 Recursively calls ByteSize() on all contained messages.
/external/chromium_org/google_apis/gcm/engine/
H A Dconnection_handler_impl.cc95 DVLOG(1) << "Writing proto of size " << message.ByteSize();
99 coded_output_stream.WriteVarint32(message.ByteSize());
120 coded_output_stream.WriteVarint32(login_request.ByteSize());
/external/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinterDwarf.cpp230 unsigned ByteSize = SizeInBits / SizeOfByte; local
231 Streamer.EmitULEB128(ByteSize, Twine(ByteSize));
/external/chromium_org/tools/telemetry/third_party/pyserial/serial/
H A Dserialwin32.py138 comDCB.ByteSize = 5
140 comDCB.ByteSize = 6
142 comDCB.ByteSize = 7
144 comDCB.ByteSize = 8

Completed in 474 milliseconds

1234