Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
fsdk::IArchive Struct Referenceabstract

Archive interface. More...

#include <IObject.h>

Public Member Functions

virtual bool write (const void *data, size_t size)=0
 Write bytes to archive.
 
virtual bool read (void *data, size_t size)=0
 Read bytes from archive.
 
virtual void setSizeHint (size_t hint)
 Set size hint.
 

Detailed Description

Archive interface.

Archives abstract data storage and IO operations.

Note
IArchive is not derived from IRefCounted and does not force any lifetime control. It is up to user to implement it.
SDK ojects that use IArchive for serialization purposes do call only write() (during saving) or only read() (during loading) but never both during the same process unless otherwise is explicitly stated.
During saving or loading SDK objects are free to write or read their data in chunks; e.g. there may be several sequential calls to write() in scope of a single serialization request. Any IArchive implementation should be aware of this.

Member Function Documentation

◆ read()

virtual bool fsdk::IArchive::read ( void * data,
size_t size )
pure virtual

Read bytes from archive.

Parameters
[in]datapointer to memory to read to.
[in]sizedata size.
Returns
true if succeeded, false otherwise.

◆ setSizeHint()

virtual void fsdk::IArchive::setSizeHint ( size_t hint)
inlinevirtual

Set size hint.

Parameters
[in]hintsize hint.

◆ write()

virtual bool fsdk::IArchive::write ( const void * data,
size_t size )
pure virtual

Write bytes to archive.

Parameters
[in]datapointer to memory to write.
[in]sizedata size.
Returns
true if succeeded, false otherwise.

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