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

123

/external/llvm/lib/DebugInfo/PDB/DIA/
H A DDIASourceFile.cpp40 DWORD ByteSize = 0; local
41 HRESULT Result = SourceFile->get_checksum(0, &ByteSize, nullptr);
42 if (ByteSize == 0)
44 std::vector<BYTE> ChecksumBytes(ByteSize);
45 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]);
/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();
285 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
306 int byte_size = ByteSize();
311 ByteSizeConsistencyError(byte_size, ByteSize(), end - start);
H A Dwire_format_unittest.cc215 TEST(WireFormatTest, ByteSize) {
219 EXPECT_EQ(message.ByteSize(), WireFormat::ByteSize(message));
221 EXPECT_EQ(0, message.ByteSize());
222 EXPECT_EQ(0, WireFormat::ByteSize(message));
229 EXPECT_EQ(message.ByteSize(),
230 WireFormat::ByteSize(message));
232 EXPECT_EQ(0, message.ByteSize());
233 EXPECT_EQ(0, WireFormat::ByteSize(message));
240 EXPECT_EQ(message.ByteSize(), WireForma
[all...]
H A Dmessage_lite.h171 // are just simple wrappers around ByteSize() and SerializeWithCachedSizes().
212 // ByteSize() on all embedded messages. If a subclass does not override
214 virtual int ByteSize() const = 0;
217 // not have changed since the last call to ByteSize(); if it has, the results
224 // must point at a byte array of at least ByteSize() bytes.
227 // Returns the result of the last call to ByteSize(). An embedded message's
232 // ByteSize() does not automatically use the cached size when available
H A Dmessage.cc146 int Message::ByteSize() const { function in class:google::protobuf::Message
147 int size = WireFormat::ByteSize(*this);
154 << "\" implements neither SetCachedSize() nor ByteSize(). "
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);
198 // will call ByteSize() for the embedded message, insuring that it caches
H A Dwire_format_lite_inl.h832 return value.ByteSize();
835 return LengthDelimitedSize(value.ByteSize());
843 return value.MessageType_WorkAroundCppLookupDefect::ByteSize();
849 value.MessageType_WorkAroundCppLookupDefect::ByteSize());
/external/nanopb-c/generator/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 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.py227 self.assertEquals(2, message.ByteSize())
231 self.assertEquals(3, message.ByteSize())
234 self.assertEquals(3, message.ByteSize())
238 self.assertEquals(3, message.ByteSize())
1499 self.assertEquals(proto.ByteSize(), 0)
1508 self.assertEquals(proto.ByteSize(), 0)
1700 self.assertEqual(proto.ByteSize(), len(serialized))
1938 return self.proto.ByteSize()
1941 self.assertEqual(0, self.proto.ByteSize())
1946 self.assertEqual(0, proto.ByteSize())
[all...]
H A Dencoder.py286 result += element.ByteSize()
291 return tag_size + value.ByteSize()
305 l = element.ByteSize()
311 l = value.ByteSize()
336 l = value.ByteSize()
747 local_EncodeVarint(write, element.ByteSize())
753 local_EncodeVarint(write, value.ByteSize())
784 local_EncodeVarint(write, value.ByteSize())
H A Dunknown_fields_test.py132 self.assertEqual(self.all_fields.ByteSize(), self.empty_message.ByteSize())
H A Dwire_format_test.py114 # Test all numeric *ByteSize() functions.
203 def ByteSize(self): member in class:WireFormatTest.testByteSizeFunctions.MockMessage
/external/nanopb-c/generator/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.py250 def ByteSize(self): member in class:Message
252 Recursively calls ByteSize() on all contained messages.
/external/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp145 const unsigned ByteSize = 1U << i; local
146 const unsigned BitSize = ByteSize * 8;
147 std::string ByteSizeStr = utostr(ByteSize);
514 const unsigned ByteSize = 1U << Idx; local
515 const unsigned BitSize = ByteSize * 8;
528 const unsigned ByteSize = 1U << Idx; local
529 const unsigned BitSize = ByteSize * 8;
545 const unsigned ByteSize = 1U << Idx; local
546 const unsigned BitSize = ByteSize * 8;
559 const unsigned ByteSize local
[all...]
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/
H A Dserialwin32.py138 comDCB.ByteSize = 5
140 comDCB.ByteSize = 6
142 comDCB.ByteSize = 7
144 comDCB.ByteSize = 8
/external/lldb/tools/debugserver/source/
H A DDNBBreakpoint.h32 nub_size_t ByteSize() const { return m_byte_size; } function in class:DNBBreakpoint
H A DDNBBreakpoint.cpp190 assert(opcode_offset + intersect_size <= bp.ByteSize());
/external/llvm/lib/IR/
H A DConstantFold.cpp204 /// first byte used, counting from the least significant byte) and ByteSize,
212 unsigned ByteSize) {
217 assert(ByteSize && "Must be accessing some piece");
218 assert(ByteStart+ByteSize <= CSize && "Extracting invalid piece from input");
219 assert(ByteSize != CSize && "Should not extract everything");
226 V = V.trunc(ByteSize*8);
238 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
247 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
253 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
261 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
211 ExtractConstantBytes(Constant *C, unsigned ByteStart, unsigned ByteSize) argument
[all...]
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfExpression.cpp57 unsigned ByteSize = SizeInBits / SizeOfByte; local
58 EmitUnsigned(ByteSize);
/external/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_unittest.cc594 int size = message1.ByteSize();
608 int packed_size = packed_message1.ByteSize();
622 int size = message1.ByteSize();
641 int size = message1.ByteSize();
776 EXPECT_EQ(3, message.ByteSize());
1752 int size = message1.ByteSize();
1766 int size = message1.ByteSize();
1781 int size = message1.ByteSize();
1795 int size = message1.ByteSize();
1809 int size = message1.ByteSize();
[all...]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
H A Dkv_pb.py112 def ByteSize(self): member in class:KeyValue
284 def ByteSize(self): member in class:KeyValues
/external/lldb/tools/debugserver/source/MacOSX/
H A DMachThread.cpp623 return m_arch_ap->EnableHardwareBreakpoint(bp->Address(), bp->ByteSize());
631 return m_arch_ap->EnableHardwareWatchpoint(wp->Address(), wp->ByteSize(), wp->WatchpointRead(), wp->WatchpointWrite(), also_set_on_task);

Completed in 573 milliseconds

123