Face Engine SDK  5.25.0
A face detection, recognition and tracking engine.
fsdk::IArchive Struct Reference

Archive interface. More...

#include <IObject.h>

List of all members.

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

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.
virtual void fsdk::IArchive::setSizeHint ( size_t  hint) [inline, virtual]

Set size hint.

Parameters:
[in]hintsize hint.
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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines