Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Serialization::InputStream Struct Referenceabstract

#include <Serialization.h>

Inheritance diagram for Serialization::InputStream:

Public Types

enum  { isInput = true }
 

Public Member Functions

 InputStream (const U8 *inNext, const U8 *inEnd)
 
virtual Uptr capacity () const =0
 
const U8advance (Uptr numBytes)
 
const U8peek (Uptr numBytes)
 

Protected Member Functions

virtual void getMoreData (Uptr numBytes)=0
 

Protected Attributes

const U8next
 
const U8end
 

Detailed Description

Definition at line 88 of file Serialization.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
isInput 

Definition at line 90 of file Serialization.h.

Constructor & Destructor Documentation

◆ InputStream()

Serialization::InputStream::InputStream ( const U8 * inNext,
const U8 * inEnd )
inline

Definition at line 92 of file Serialization.h.

92: next(inNext), end(inEnd) {}

Member Function Documentation

◆ advance()

const U8 * Serialization::InputStream::advance ( Uptr numBytes)
inline

Definition at line 97 of file Serialization.h.

98 {
99 if(next + numBytes > end) { getMoreData(numBytes); }
100 const U8* data = next;
101 next += numBytes;
102 return data;
103 }
uint8_t U8
Definition BasicTypes.h:5
virtual void getMoreData(Uptr numBytes)=0
Here is the call graph for this function:
Here is the caller graph for this function:

◆ capacity()

virtual Uptr Serialization::InputStream::capacity ( ) const
pure virtual

Implemented in Serialization::MemoryInputStream.

Here is the caller graph for this function:

◆ getMoreData()

virtual void Serialization::InputStream::getMoreData ( Uptr numBytes)
protectedpure virtual
Here is the caller graph for this function:

◆ peek()

const U8 * Serialization::InputStream::peek ( Uptr numBytes)
inline

Definition at line 106 of file Serialization.h.

107 {
108 if(next + numBytes > end) { getMoreData(numBytes); }
109 return next;
110 }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ end

const U8* Serialization::InputStream::end
protected

Definition at line 115 of file Serialization.h.

◆ next

const U8* Serialization::InputStream::next
protected

Definition at line 114 of file Serialization.h.


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