Into

Modules

Documentation

classPiiBinaryObject

#include <PiiBinaryObject.h>

A serialization wrapper for binary data.

Description

Note that this wrapper only works with primitive data types.

Constructors and destructor

(
  • T *& p
  • unsigned int & s
)

Creates a new binary data wrapper with the given pointer and number of elements.

(
  • const T *& p
  • unsigned int & s
)

Creates a new binary data wrapper with the given pointer and number of elements.

Public member functions

template<class Archive>
void
(
  • Archive & archive
  • const unsigned int
)

Calls archive.readArray().

template<class Archive>
PII_SEPARATE_SAVE_LOAD_MEMBERS void
(
  • Archive & archive
  • const unsigned int
)

Calls archive.writeArray().

template<class T>
(
  • T *& p
  • unsigned int & s
)

Constructs a PiiBinaryObject.

template<class T>
(
  • const T *& p
  • unsigned int & s
)

Constructs a PiiBinaryObject.

Function details

  • PiiBinaryObject

    (
    • T *& p
    • unsigned int & s
    )
    [inline]

    Creates a new binary data wrapper with the given pointer and number of elements.

  • PiiBinaryObject

    (
    • const T *& p
    • unsigned int & s
    )
    [inline]

    Creates a new binary data wrapper with the given pointer and number of elements.

  • template<class Archive>

    void load

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]

    Calls archive.readArray().

  • template<class Archive>

    PII_SEPARATE_SAVE_LOAD_MEMBERS void save

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]

    Calls archive.writeArray().

  • template<class T>

    PiiBinaryObject< T > binaryObject

    (
    • T *& p
    • unsigned int & s
    )

    Constructs a PiiBinaryObject.

  • template<class T>

    PiiBinaryObject< T > binaryObject

    (
    • const T *& p
    • unsigned int & s
    )

    Constructs a PiiBinaryObject.

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.