Photon Fusion 2.1.1

ElementReaderWriterBoolean Struct Reference

Reader-writer for Booleans. More...

Inherits IElementReaderWriter< T >.

Public Member Functions

int GetElementHashCode (bool val)
int GetElementWordCount ()
 Gets the word count of an element.
Returns
The word count of an element.

unsafe bool Read (byte *data, int index)
 Reads an element from the specified index in the byte array.
Parameters
dataThe byte array.
indexThe index of the element.
Returns
The element at the specified index.

bool Read (ReadOnlySpan< byte > data)
unsafe ref bool ReadRef (byte *data, int index)
 Reads a reference to an element from the specified index in the byte array.
Parameters
dataThe byte array.
indexThe index of the element.
Returns
A reference to the element at the specified index.

ref bool ReadRef (Span< byte > data)
unsafe void Write (byte *data, int index, bool val)
void Write (Span< byte > data, bool val)
Public Member Functions inherited from IElementReaderWriter< T >
int GetElementHashCode (T element)
 Calculate the hash code of an element.
void Write (byte *data, int index, T element)
 Writes an element to the specified index in the byte array.

Static Public Member Functions

static IElementReaderWriter< bool > GetInstance ()
 Returns an instance of the reader/writer.

Detailed Description

Reader-writer for Booleans.