Home
last modified time | relevance | path

Searched refs:ByteSize (Results 1 – 25 of 88) sorted by relevance

1234

/external/protobuf/src/google/protobuf/
Dwell_known_types_unittest.cc45 EXPECT_EQ(0, message.any_field().ByteSize()); in TEST()
46 EXPECT_EQ(0, message.api_field().ByteSize()); in TEST()
47 EXPECT_EQ(0, message.duration_field().ByteSize()); in TEST()
48 EXPECT_EQ(0, message.empty_field().ByteSize()); in TEST()
49 EXPECT_EQ(0, message.field_mask_field().ByteSize()); in TEST()
50 EXPECT_EQ(0, message.source_context_field().ByteSize()); in TEST()
51 EXPECT_EQ(0, message.struct_field().ByteSize()); in TEST()
52 EXPECT_EQ(0, message.timestamp_field().ByteSize()); in TEST()
53 EXPECT_EQ(0, message.type_field().ByteSize()); in TEST()
54 EXPECT_EQ(0, message.int32_field().ByteSize()); in TEST()
Dwire_format_unittest.cc219 TEST(WireFormatTest, ByteSize) { in TEST() argument
223 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message)); in TEST()
225 EXPECT_EQ(0, message.ByteSize()); in TEST()
226 EXPECT_EQ(0, WireFormat::ByteSize(message)); in TEST()
233 EXPECT_EQ(message.ByteSize(), in TEST()
234 WireFormat::ByteSize(message)); in TEST()
236 EXPECT_EQ(0, message.ByteSize()); in TEST()
237 EXPECT_EQ(0, WireFormat::ByteSize(message)); in TEST()
244 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message)); in TEST()
246 EXPECT_EQ(0, message.ByteSize()); in TEST()
[all …]
Dmessage_lite.cc242 const int size = ByteSize(); // Force size to be cached. in SerializePartialToCodedStream()
253 ByteSizeConsistencyError(size, ByteSize(), end - buffer, *this); in SerializePartialToCodedStream()
265 ByteSizeConsistencyError(size, ByteSize(), in SerializePartialToCodedStream()
292 int byte_size = ByteSize(); in AppendPartialToString()
304 ByteSizeConsistencyError(byte_size, ByteSize(), end - start, *this); in AppendPartialToString()
325 int byte_size = ByteSize(); in SerializePartialToArray()
330 ByteSizeConsistencyError(byte_size, ByteSize(), end - start, *this); in SerializePartialToArray()
Dproto3_lite_unittest.cc140 EXPECT_EQ(msg1.ByteSize(), msg2.ByteSize() + 1); in TEST()
Dwrappers.pb.h86 int ByteSize() const;
177 int ByteSize() const;
268 int ByteSize() const;
359 int ByteSize() const;
450 int ByteSize() const;
541 int ByteSize() const;
632 int ByteSize() const;
723 int ByteSize() const;
822 int ByteSize() const;
Dmap_entry_lite.h171 int ByteSize() const { in ByteSize() function
173 size += has_key() ? kTagSize + KeyTypeHandler::ByteSize(key()) : 0; in ByteSize()
174 size += has_value() ? kTagSize + ValueTypeHandler::ByteSize(value()) : 0; in ByteSize()
Dproto3_arena_unittest.cc148 ASSERT_EQ(original.ByteSize(), arena_message->ByteSize()); in TEST()
Dmap_entry.h161 int ByteSize() const { in ByteSize() function
162 return entry_lite_.ByteSize(); in ByteSize()
Dmap_type_handler.h161 static inline int ByteSize(const MapEntryAccessorType& value);
217 static inline int ByteSize(const MapEntryAccessorType& value); \
270 MapTypeHandler<WireFormatLite::TYPE_MESSAGE, Type>::ByteSize(
277 inline int MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::ByteSize( \
296 inline int MapTypeHandler<WireFormatLite::TYPE_##FieldType, Type>::ByteSize( \
/external/llvm/lib/DebugInfo/PDB/DIA/
DDIASourceFile.cpp44 DWORD ByteSize = 0; in getChecksum() local
45 HRESULT Result = SourceFile->get_checksum(0, &ByteSize, nullptr); in getChecksum()
46 if (ByteSize == 0) in getChecksum()
48 std::vector<BYTE> ChecksumBytes(ByteSize); in getChecksum()
49 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]); in getChecksum()
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py237 self.assertEqual(2, message.ByteSize())
241 self.assertEqual(3, message.ByteSize())
244 self.assertEqual(3, message.ByteSize())
248 self.assertEqual(3, message.ByteSize())
1514 self.assertEqual(proto.ByteSize(), 0)
1523 self.assertEqual(proto.ByteSize(), 0)
1714 self.assertEqual(proto.ByteSize(), len(serialized))
1968 return self.proto.ByteSize()
1971 self.assertEqual(0, self.proto.ByteSize())
1976 self.assertEqual(0, proto.ByteSize())
[all …]
Dwire_format.py195 + message.ByteSize())
200 + _VarUInt64ByteSizeNoTag(message.ByteSize())
201 + message.ByteSize())
214 message_size = msg.ByteSize()
Dencoder.py283 result += element.ByteSize()
288 return tag_size + value.ByteSize()
302 l = element.ByteSize()
308 l = value.ByteSize()
333 l = value.ByteSize()
756 local_EncodeVarint(write, element.ByteSize())
762 local_EncodeVarint(write, value.ByteSize())
792 local_EncodeVarint(write, value.ByteSize())
/external/nanopb-c/generator/google/protobuf/internal/
Dwire_format.py195 + message.ByteSize())
200 + _VarUInt64ByteSizeNoTag(message.ByteSize())
201 + message.ByteSize())
214 message_size = msg.ByteSize()
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/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp159 const unsigned ByteSize = 1U << i; in initializeCallbacks() local
160 const unsigned BitSize = ByteSize * 8; in initializeCallbacks()
161 std::string ByteSizeStr = utostr(ByteSize); in initializeCallbacks()
573 const unsigned ByteSize = 1U << Idx; in instrumentAtomic() local
574 const unsigned BitSize = ByteSize * 8; in instrumentAtomic()
594 const unsigned ByteSize = 1U << Idx; in instrumentAtomic() local
595 const unsigned BitSize = ByteSize * 8; in instrumentAtomic()
611 const unsigned ByteSize = 1U << Idx; in instrumentAtomic() local
612 const unsigned BitSize = ByteSize * 8; in instrumentAtomic()
625 const unsigned ByteSize = 1U << Idx; in instrumentAtomic() local
[all …]
/external/llvm/lib/DebugInfo/PDB/Raw/
DNameHashTable.cpp28 support::ulittle32_t ByteSize; in load() member
44 if (auto EC = Stream.readStreamRef(NamesBuffer, H->ByteSize)) in load()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc619 int size = message1.ByteSize(); in TEST()
633 int packed_size = packed_message1.ByteSize(); in TEST()
647 int size = message1.ByteSize(); in TEST()
666 int size = message1.ByteSize(); in TEST()
801 EXPECT_EQ(3, message.ByteSize()); in TEST()
1817 int size = message1.ByteSize(); in TEST_F()
1831 int size = message1.ByteSize(); in TEST_F()
1846 int size = message1.ByteSize(); in TEST_F()
1860 int size = message1.ByteSize(); in TEST_F()
1874 int size = message1.ByteSize(); in TEST_F()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp213 unsigned ByteSize) { in ExtractConstantBytes() argument
218 assert(ByteSize && "Must be accessing some piece"); in ExtractConstantBytes()
219 assert(ByteStart+ByteSize <= CSize && "Extracting invalid piece from input"); in ExtractConstantBytes()
220 assert(ByteSize != CSize && "Should not extract everything"); in ExtractConstantBytes()
227 V = V.trunc(ByteSize*8); in ExtractConstantBytes()
239 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
248 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
254 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
262 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
280 ByteSize*8)); in ExtractConstantBytes()
[all …]
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DEDInst.cpp33 ByteSize(byteSize), in EDInst()
56 return ByteSize; in byteSize()
DEDInst.h68 uint64_t ByteSize; member
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp195 unsigned ByteSize) { in ExtractConstantBytes() argument
200 assert(ByteSize && "Must be accessing some piece"); in ExtractConstantBytes()
201 assert(ByteStart+ByteSize <= CSize && "Extracting invalid piece from input"); in ExtractConstantBytes()
202 assert(ByteSize != CSize && "Should not extract everything"); in ExtractConstantBytes()
209 V = V.trunc(ByteSize*8); in ExtractConstantBytes()
221 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
230 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
236 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize); in ExtractConstantBytes()
244 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize); in ExtractConstantBytes()
262 ByteSize*8)); in ExtractConstantBytes()
[all …]
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
Dserialwin32.py138 comDCB.ByteSize = 5
140 comDCB.ByteSize = 6
142 comDCB.ByteSize = 7
144 comDCB.ByteSize = 8
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfExpression.cpp57 unsigned ByteSize = SizeInBits / SizeOfByte; in AddOpPiece() local
58 EmitUnsigned(ByteSize); in AddOpPiece()
/external/nanopb-c/generator/google/protobuf/
Dmessage.py246 def ByteSize(self): member in Message

1234