Lines Matching defs:bytes
118 auto *bytes = reinterpret_cast<cpp::byte *>(usable_space);
119 return reinterpret_cast<Block *>(bytes - sizeof(Block));
122 const auto *bytes = reinterpret_cast<const cpp::byte *>(usable_space);
123 return reinterpret_cast<const Block *>(bytes - sizeof(Block));
126 /// @returns The total size of the block in bytes, including the header.
134 /// @returns The number of usable bytes inside the block were it to be
142 /// @returns The number of usable bytes inside a block with the given outer
149 /// @returns The number of usable bytes inside the block if it remains free.
156 /// @returns The number of usable bytes inside a block with the given outer
324 /// Construct a block to represent a span of bytes. Overwrites only enough
326 LIBC_INLINE static Block *as_block(ByteSpan bytes) {
327 LIBC_ASSERT(reinterpret_cast<uintptr_t>(bytes.data()) % alignof(Block) ==
330 return ::new (bytes.data()) Block(bytes.size(), /*is_last=*/false);