Home
last modified time | relevance | path

Searched refs:kHeaderSize (Results 1 – 25 of 176) sorted by relevance

12345678

/external/perfetto/src/ipc/
Dbuffered_frame_deserializer.cc37 constexpr size_t kHeaderSize = sizeof(uint32_t); variable
93 if (size_ < consumed_size + kHeaderSize) in EndReceive()
99 memcpy(base::AssumeLittleEndian(&payload_size), rd_ptr, kHeaderSize); in EndReceive()
105 next_frame_size += kHeaderSize; in EndReceive()
106 rd_ptr += kHeaderSize; in EndReceive()
180 buf.insert(0, kHeaderSize, 0); // Reserve the space for the header. in Serialize()
182 const uint32_t payload_size = static_cast<uint32_t>(buf.size() - kHeaderSize); in Serialize()
185 PERFETTO_DCHECK(kHeaderSize + payload_size <= kIPCBufferSize); in Serialize()
186 char header[kHeaderSize]; in Serialize()
187 memcpy(header, base::AssumeLittleEndian(&payload_size), kHeaderSize); in Serialize()
[all …]
Dbuffered_frame_deserializer_unittest.cc32 constexpr uint32_t kHeaderSize = sizeof(uint32_t); variable
47 const uint32_t payload_size = static_cast<uint32_t>(size - kHeaderSize); in GetSimpleFrame()
69 PERFETTO_CHECK(frame.SerializeToArray(enc_buf + kHeaderSize, in GetSimpleFrame()
71 memcpy(enc_buf, base::AssumeLittleEndian(&payload_size), kHeaderSize); in GetSimpleFrame()
86 size_t expected_size = expected_frame_with_header.size() - kHeaderSize; in FrameEq()
92 expected_frame_with_header.data() + kHeaderSize, in FrameEq()
111 ASSERT_EQ(static_cast<int32_t>(size - kHeaderSize), in TEST()
137 serialized_frame.resize(kHeaderSize + payload_size); in TEST()
138 ASSERT_TRUE(frame.SerializeToArray(serialized_frame.data() + kHeaderSize, in TEST()
141 kHeaderSize); in TEST()
[all …]
/external/v8/src/objects/
Dfixed-array.h99 static const int kLengthOffset = HeapObject::kHeaderSize;
100 static const int kHeaderSize = kLengthOffset + kPointerSize; variable
162 return kHeaderSize + length * kPointerSize; in SizeFor()
173 static const int kMaxLength = (kMaxSize - kHeaderSize) / kPointerSize;
180 (kMaxRegularHeapObjectSize - kHeaderSize) / kPointerSize;
190 typedef FlexibleBodyDescriptor<kHeaderSize> BodyDescriptor;
201 STATIC_ASSERT(kHeaderSize == Internals::kFixedArrayHeaderSize);
236 return kHeaderSize + length * kDoubleSize; in SizeFor()
250 static const int kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize;
281 return kHeaderSize + length * kPointerSize; in SizeFor()
[all …]
Dfixed-array-inl.h61 return RELAXED_READ_FIELD(this, kHeaderSize + index * kPointerSize); in get()
90 int offset = kHeaderSize + index * kPointerSize; in set()
99 int offset = kHeaderSize + index * kPointerSize; in set()
108 int offset = kHeaderSize + index * kPointerSize; in set()
119 RELAXED_WRITE_FIELD(array, kHeaderSize + index * kPointerSize, value); in NoWriteBarrierSet()
175 return READ_DOUBLE_FIELD(this, kHeaderSize + index * kDoubleSize); in get_scalar()
182 int offset = kHeaderSize + index * kDoubleSize; in get_representation()
198 int offset = kHeaderSize + index * kDoubleSize; in set()
214 int offset = kHeaderSize + index * kDoubleSize; in set_the_hole()
227 return reinterpret_cast<double*>(FIELD_ADDR(this, kHeaderSize)); in data_start()
[all …]
Dpromise.h33 static const int kArgumentOffset = Microtask::kHeaderSize;
79 static const int kContextOffset = Microtask::kHeaderSize;
101 static const int kPromiseOffset = Struct::kHeaderSize;
143 static const int kNextOffset = Struct::kHeaderSize;
Dcode.h323 return RoundUp(kHeaderSize + body_size, kCodeAlignment); in SizeFor()
380 static const int kRelocationInfoOffset = HeapObject::kHeaderSize;
401 static const int kHeaderSize = variable
478 static const int kNextCodeLinkOffset = HeapObject::kHeaderSize;
489 typedef FixedBodyDescriptor<HeapObject::kHeaderSize,
494 typedef FixedBodyDescriptor<HeapObject::kHeaderSize,
707 return OBJECT_POINTER_ALIGN(kHeaderSize + length); in SizeFor()
802 V(kHeaderSize, 0)
804 DEFINE_FIELD_OFFSET_CONSTANTS(FixedArrayBase::kHeaderSize,
811 static const int kMaxLength = kMaxSize - kHeaderSize;
Dtemplates.h31 static const int kTagOffset = HeapObject::kHeaderSize;
37 static const int kHeaderSize = kPropertyAccessorsOffset + kPointerSize; variable
140 static const int kCallCodeOffset = TemplateInfo::kHeaderSize;
206 static const int kConstructorOffset = TemplateInfo::kHeaderSize;
Dcode-inl.h195 kHeaderSize - kHeaderPaddingStart); in clear_padding()
237 return FIELD_ADDR(this, kHeaderSize); in raw_instruction_start()
262 return RoundUp(kHeaderSize + raw_instruction_size(), kInt64Size); in GetUnwindingInfoSizeOffset()
334 Code::kHeaderSize); in ExecutableSize()
335 return raw_instruction_size() + Code::kHeaderSize; in ExecutableSize()
552 HeapObject* code = HeapObject::FromAddress(address - Code::kHeaderSize); in GetCodeFromTargetAddress()
562 return HeapObject::FromAddress(code_entry - Code::kHeaderSize); in GetObjectFromCodeEntry()
602 return READ_BYTE_FIELD(this, kHeaderSize + index * kCharSize); in get()
607 WRITE_BYTE_FIELD(this, kHeaderSize + index * kCharSize, value); in set()
700 int data_size = kHeaderSize + length(); in ACCESSORS()
[all …]
Djs-array.h81 static const int kLengthOffset = JSObject::kHeaderSize;
93 (kMaxRegularHeapObjectSize - FixedArray::kHeaderSize - kSize -
148 static const int kIteratedObjectOffset = JSObject::kHeaderSize;
Dmodule.h125 static const int kCodeOffset = HeapObject::kHeaderSize;
245 static const int kModuleOffset = JSObject::kHeaderSize;
246 static const int kHeaderSize = kModuleOffset + kPointerSize; variable
248 static const int kSize = kHeaderSize + kPointerSize * kInObjectFieldCount;
321 static const int kExportNameOffset = HeapObject::kHeaderSize;
Dshared-function-info.h48 DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize,
88 DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize, UNCOMPILED_DATA_FIELDS)
165 static const int kBytecodeArrayOffset = Struct::kHeaderSize;
224 FixedArray::kHeaderSize + kPointerSize * (kContextOffset - kEntryLength);
226 FixedArray::kHeaderSize +
619 DEFINE_FIELD_OFFSET_CONSTANTS(HeapObject::kHeaderSize,
/external/webrtc/webrtc/modules/media_file/
Dmedia_file_unittest.cc62 static const size_t kHeaderSize = 44; in TEST_F() local
91 static_assert(sizeof(kExpectedHeader) == kHeaderSize, "header size"); in TEST_F()
93 EXPECT_EQ(kHeaderSize + kPayloadSize, webrtc::test::GetFileSize(outfile)); in TEST_F()
97 uint8_t header[kHeaderSize]; in TEST_F()
98 ASSERT_EQ(1u, fread(header, kHeaderSize, 1, f)); in TEST_F()
99 EXPECT_EQ(0, memcmp(kExpectedHeader, header, kHeaderSize)); in TEST_F()
/external/skqp/src/gpu/
DGrMemoryPool.cpp73 size_t blockSize = size + kHeaderSize; in allocate()
121 fHead->fCurrPtr = reinterpret_cast<intptr_t>(fHead) + kHeaderSize; in release()
123 fHead->fFreeSize = fHead->fSize - kHeaderSize; in release()
152 blockSize = SkTMax<size_t>(blockSize, kHeaderSize); in CreateBlock()
159 block->fFreeSize = blockSize - kHeaderSize; in CreateBlock()
160 block->fCurrPtr = reinterpret_cast<intptr_t>(block) + kHeaderSize; in CreateBlock()
189 intptr_t userStart = b + kHeaderSize; in validate()
201 SkASSERT(ptrOffset == kHeaderSize); in validate()
DGrProgramDesc.h123 kHeaderSize = SkAlign4(sizeof(KeyHeader)), enumerator
127 kProcessorKeysOffset = kHeaderOffset + kHeaderSize,
133 kPreAllocSize = kHeaderOffset + kHeaderSize +
/external/skia/src/gpu/
DGrMemoryPool.cpp73 size_t blockSize = size + kHeaderSize; in allocate()
121 fHead->fCurrPtr = reinterpret_cast<intptr_t>(fHead) + kHeaderSize; in release()
123 fHead->fFreeSize = fHead->fSize - kHeaderSize; in release()
152 blockSize = SkTMax<size_t>(blockSize, kHeaderSize); in CreateBlock()
159 block->fFreeSize = blockSize - kHeaderSize; in CreateBlock()
160 block->fCurrPtr = reinterpret_cast<intptr_t>(block) + kHeaderSize; in CreateBlock()
189 intptr_t userStart = b + kHeaderSize; in validate()
201 SkASSERT(ptrOffset == kHeaderSize); in validate()
DGrProgramDesc.h128 kHeaderSize = SkAlign4(sizeof(KeyHeader)), enumerator
132 kProcessorKeysOffset = kHeaderOffset + kHeaderSize,
138 kPreAllocSize = kHeaderOffset + kHeaderSize +
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtransport_feedback_unittest.cc24 static const int kHeaderSize = 20; variable
147 kHeaderSize + kStatusChunkSize + (kLength * kSmallDeltaSize); in TEST()
159 kHeaderSize + kStatusChunkSize + (kLength * kSmallDeltaSize); in TEST()
172 kHeaderSize + kStatusChunkSize + (kLength * kSmallDeltaSize); in TEST()
185 kHeaderSize + kStatusChunkSize + (kLength * kSmallDeltaSize); in TEST()
197 kHeaderSize + kStatusChunkSize + (kLength * kLargeDeltaSize); in TEST()
210 kHeaderSize + (2 * kStatusChunkSize) + (kLength * kLargeDeltaSize); in TEST()
229 kHeaderSize + kStatusChunkSize + (3 * kLargeDeltaSize) + kSmallDeltaSize; in TEST()
248 kHeaderSize + (3 * kStatusChunkSize) + (kLength * kSmallDeltaSize); in TEST()
266 kHeaderSize + (3 * kStatusChunkSize) + (kLength * kSmallDeltaSize); in TEST()
[all …]
/external/v8/src/builtins/
Dbuiltins-arguments-gen.cc80 base_size += FixedArray::kHeaderSize; in AllocateArgumentsObject()
88 base_size + FixedArray::kHeaderSize); in AllocateArgumentsObject()
108 arguments_count, PACKED_ELEMENTS, mode, FixedArray::kHeaderSize); in AllocateArgumentsObject()
144 offset.Bind(IntPtrConstant(FixedArrayBase::kHeaderSize - kHeapObjectTag)); in ConstructParametersObjectFromArgs()
181 rest_count, &runtime, JSArray::kSize + FixedArray::kHeaderSize, mode); in EmitFastNewRestParameter()
228 JSStrictArgumentsObject::kSize + FixedArray::kHeaderSize, mode); in EmitFastNewStrictArguments()
295 JSSloppyArgumentsObject::kSize + FixedArray::kHeaderSize * 2, mode); in EmitFastNewSloppyArguments()
314 FixedArray::kHeaderSize - kHeapObjectTag); in EmitFastNewSloppyArguments()
317 FixedArray::kHeaderSize - kHeapObjectTag); in EmitFastNewSloppyArguments()
349 FixedArray::kHeaderSize + 2 * kPointerSize; in EmitFastNewSloppyArguments()
[all …]
/external/v8/src/
Dfield-index-inl.h35 first_inobject_offset = FixedArray::kHeaderSize; in ForPropertyIndex()
37 offset = FixedArray::kHeaderSize + property_index * kPointerSize; in ForPropertyIndex()
56 result -= JSObject::kHeaderSize / kPointerSize; in GetLoadByFieldIndex()
58 result -= FixedArray::kHeaderSize / kPointerSize; in GetLoadByFieldIndex()
Dobjects.h1454 static const int kHeaderSize = 0; // Object does not take up any space.
1795 static const int kMapOffset = Object::kHeaderSize;
1796 static const int kHeaderSize = kMapOffset + kPointerSize; variable
1844 static const int kValueOffset = HeapObject::kHeaderSize;
1946 return kHeaderSize + length * kPointerSize; in SizeFor()
1954 static const int kLengthAndHashOffset = HeapObject::kHeaderSize;
1955 static const int kHeaderSize = kLengthAndHashOffset + kPointerSize; variable
1958 typedef FlexibleBodyDescriptor<kHeaderSize> BodyDescriptor;
2216 static const int kPropertiesOrHashOffset = HeapObject::kHeaderSize;
2217 static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize; variable
[all …]
/external/protobuf/src/google/protobuf/
Darena.cc72 first_block->pos = kHeaderSize; in Init()
128 if (n > size - kHeaderSize) { in NewBlock()
130 size = kHeaderSize + n; in NewBlock()
134 b->pos = kHeaderSize + n; in NewBlock()
229 return reinterpret_cast<char*>(b) + kHeaderSize; in SlowAlloc()
246 space_used += (b->pos - kHeaderSize); in SpaceUsed()
259 used += (b->pos - kHeaderSize); in SpaceAllocatedAndUsed()
289 first_block->pos = kHeaderSize; in FreeBlocks()
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc45 constexpr auto kHeaderSize = kAlignment; variable
186 base::AlignUp<kAlignment>(size + kHeaderSize); in BeginWrite()
203 result.data = wr_ptr + kHeaderSize; in BeginWrite()
217 uint8_t* wr_ptr = buf.data - kHeaderSize; in EndWrite()
236 if (avail_read < kHeaderSize) { in BeginRead()
251 const size_t size_with_header = base::AlignUp<kAlignment>(size + kHeaderSize); in BeginRead()
263 rd_ptr += kHeaderSize; in BeginRead()
272 size_t size_with_header = base::AlignUp<kAlignment>(buf.size + kHeaderSize); in EndRead()
/external/bsdiff/
Dtest_utils.cc108 TEST_AND_RETURN_FALSE(contents.size() >= kHeaderSize); in LoadFromFile()
120 static_cast<uint64_t>(kHeaderSize + ctrl_len + diff_len)); in LoadFromFile()
121 extra_len = file_size - kHeaderSize - ctrl_len - diff_len; in LoadFromFile()
123 uint8_t* ptr = contents.data() + kHeaderSize; in LoadFromFile()
/external/v8/src/snapshot/
Dcode-serializer.cc389 uint32_t payload_offset = kHeaderSize + reservation_size + stub_keys_size; in SerializedCodeData()
410 memset(data_ + kUnalignedHeaderSize, 0, kHeaderSize - kUnalignedHeaderSize); in SerializedCodeData()
413 CopyBytes(data_ + kHeaderSize, in SerializedCodeData()
418 CopyBytes(data_ + kHeaderSize + reservation_size, in SerializedCodeData()
435 if (this->size_ < kHeaderSize) return INVALID_HEADER; in SanityCheck()
453 POINTER_SIZE_ALIGN(kHeaderSize + in SanityCheck()
486 memcpy(reservations.data(), data_ + kHeaderSize, in Reservations()
494 int payload_offset = kHeaderSize + reservations_size + code_stubs_size; in Payload()
505 const byte* start = data_ + kHeaderSize + reservations_size; in CodeStubKeys()
/external/tensorflow/tensorflow/core/lib/io/
Drecord_reader.cc146 offset += kHeaderSize + length + kFooterSize; in GetMetadata()
157 data_size + (kHeaderSize + kFooterSize) * entries; in GetMetadata()
187 s = ReadChecksummed(*offset + kHeaderSize, length, record); in ReadRecord()
196 *offset += kHeaderSize + length + kFooterSize; in ReadRecord()

12345678