#include <BufferWriter.h>
Definition at line 380 of file BufferWriter.h.
◆ IndexWriter() [1/5]
skgpu::IndexWriter::IndexWriter |
( |
| ) |
|
|
default |
◆ IndexWriter() [2/5]
skgpu::IndexWriter::IndexWriter |
( |
void * |
ptr, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ IndexWriter() [3/5]
skgpu::IndexWriter::IndexWriter |
( |
void * |
ptr, |
|
|
Mark |
end |
|
) |
| |
|
inline |
◆ IndexWriter() [4/5]
skgpu::IndexWriter::IndexWriter |
( |
const IndexWriter & |
| ) |
|
|
delete |
◆ IndexWriter() [5/5]
◆ makeOffset()
Definition at line 395 of file BufferWriter.h.
395 {
396 return this->BufferWriter::makeOffset<IndexWriter>(numIndices * sizeof(uint16_t));
397 }
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 390 of file BufferWriter.h.
390 {
392 return *this;
393 }
BufferWriter & operator=(const BufferWriter &)=delete
◆ writeArray()
void skgpu::IndexWriter::writeArray |
( |
const uint16_t * |
array, |
|
|
int |
count |
|
) |
| |
|
inline |
Definition at line 399 of file BufferWriter.h.
399 {
400 size_t arraySize =
count *
sizeof(uint16_t);
402 memcpy(
fPtr, array, arraySize);
403 fPtr = SkTAddOffset<void>(
fPtr, arraySize);
404
405 }
void validate(size_t bytesToWrite) const
◆ operator<<
Definition at line 410 of file BufferWriter.h.
410 {
411 w.validate(
sizeof(uint16_t));
412 memcpy(
w.fPtr, &val,
sizeof(uint16_t));
415}
The documentation for this struct was generated from the following file: