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

#include <Serialization.h>

Inheritance diagram for Serialization::OutputStream:

Public Types

enum  { isInput = false }
 

Public Member Functions

 OutputStream ()
 
Uptr capacity () const
 
U8advance (Uptr numBytes)
 

Protected Member Functions

virtual void extendBuffer (Uptr numBytes)=0
 

Protected Attributes

U8next
 
U8end
 

Detailed Description

Definition at line 27 of file Serialization.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
isInput 

Definition at line 29 of file Serialization.h.

Constructor & Destructor Documentation

◆ OutputStream()

Serialization::OutputStream::OutputStream ( )
inline

Definition at line 31 of file Serialization.h.

Member Function Documentation

◆ advance()

U8 * Serialization::OutputStream::advance ( Uptr numBytes)
inline

Definition at line 36 of file Serialization.h.

37 {
38 if(next + numBytes > end) { extendBuffer(numBytes); }
39 WAVM_ASSERT_THROW(next + numBytes <= end);
40
41 U8* data = next;
42 next += numBytes;
43 return data;
44 }
uint8_t U8
Definition BasicTypes.h:5
#define WAVM_ASSERT_THROW(cond)
Definition Errors.h:29
virtual void extendBuffer(Uptr numBytes)=0
Here is the call graph for this function:

◆ capacity()

Uptr Serialization::OutputStream::capacity ( ) const
inline

Definition at line 33 of file Serialization.h.

33{ return SIZE_MAX; }
#define SIZE_MAX
Definition stdint.h:252
Here is the caller graph for this function:

◆ extendBuffer()

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

Member Data Documentation

◆ end

U8* Serialization::OutputStream::end
protected

Definition at line 49 of file Serialization.h.

◆ next

U8* Serialization::OutputStream::next
protected

Definition at line 48 of file Serialization.h.


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