|
Blender V4.3
|
#include <BKE_bake_items_serialize.hh>
Inherited by blender::bke::bake::DiskBlobReader, and blender::bke::bake::MemoryBlobReader.
Public Member Functions | |
| virtual | ~BlobReader ()=default |
| virtual bool | read (const BlobSlice &slice, void *r_data) const =0 |
| virtual bool | read_as_stream (const BlobSlice &slice, FunctionRef< bool(std::istream &)> fn) const |
Abstract base class for loading binary data.
Definition at line 30 of file BKE_bake_items_serialize.hh.
|
virtualdefault |
|
nodiscardpure virtual |
Read the data from the given slice into the provided memory buffer.
Implemented in blender::bke::bake::DiskBlobReader, and blender::bke::bake::MemoryBlobReader.
Referenced by read_as_stream(), blender::bke::bake::read_blob_raw_bytes(), and blender::bke::bake::read_blob_raw_data_with_endian().
|
nodiscardvirtual |
Provides an #istream that can be used to read the data from the given slice.
Definition at line 74 of file bake_items_serialize.cc.
References blender::bke::bake::BlobSlice::range, read(), and blender::IndexRange::size().
Referenced by blender::bke::bake::deserialize_bake_item().