feisty meow concerns codebase  2.140
basis::packable Class Referenceabstract

A base class for objects that can pack into an array of bytes. More...

#include <byte_array.h>

Inheritance diagram for basis::packable:
Collaboration diagram for basis::packable:

Public Member Functions

virtual void pack (byte_array &packed_form) const =0
 Creates a packed form of the packable object in "packed_form". More...
 
virtual bool unpack (byte_array &packed_form)=0
 Restores the packable from the "packed_form". More...
 
virtual int packed_size () const =0
 Estimates the space needed for the packed structure. More...
 

Detailed Description

A base class for objects that can pack into an array of bytes.

A packable is an abstract object that represents any object that can be transformed from a potentially deep form into an equivalent flat form. The flat form is a simple extent of memory stored as bytes.

Definition at line 86 of file byte_array.h.

Member Function Documentation

◆ pack()

◆ packed_size()

◆ unpack()

virtual bool basis::packable::unpack ( byte_array packed_form)
pure virtual

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