Blender V5.3
blender::BlendStructWriterVoid Class Reference

#include <BLO_read_write.hh>

Inherited by blender::BlendStructWriter< T >.

Public Member Functions

 BlendStructWriterVoid (WriteData &wd, const int struct_nr, MutableSpan< char > data)
template<typename T>
BlendStructWriter< T > typed ()
Generic DNA File Writing
void generated_ptr (int64_t offset)

Protected Attributes

WriteData * wd_
int struct_nr_
MutableSpan< char > data_

Detailed Description

Allows code using BlendWriter to customize how a specific struct is written. Often, small changes to the struct data are done before it is written (e.g. zeroing runtime pointers and setting generated pointers).

Use typed to get a typed view of the shallow copy that will be written.

Definition at line 67 of file BLO_read_write.hh.

Constructor & Destructor Documentation

◆ BlendStructWriterVoid()

blender::BlendStructWriterVoid::BlendStructWriterVoid ( WriteData & wd,
const int struct_nr,
MutableSpan< char > data )
inline

Definition at line 75 of file BLO_read_write.hh.

References blender::data, data_, struct_nr_, and wd_.

Referenced by blender::BlendStructWriter< T >::BlendStructWriter().

Member Function Documentation

◆ generated_ptr()

◆ typed()

template<typename T>
BlendStructWriter< T > blender::BlendStructWriterVoid::typed ( )
inline

Member Data Documentation

◆ data_

MutableSpan<char> blender::BlendStructWriterVoid::data_
protected

This is a shallow copy of the struct being written.

Definition at line 72 of file BLO_read_write.hh.

Referenced by blender::BlendStructWriter< T >::BlendStructWriter(), BlendStructWriterVoid(), and generated_ptr().

◆ struct_nr_

int blender::BlendStructWriterVoid::struct_nr_
protected

Definition at line 70 of file BLO_read_write.hh.

Referenced by BlendStructWriterVoid(), generated_ptr(), and typed().

◆ wd_

WriteData* blender::BlendStructWriterVoid::wd_
protected

Definition at line 69 of file BLO_read_write.hh.

Referenced by BlendStructWriterVoid(), and generated_ptr().


The documentation for this class was generated from the following files: