Struct UnsafeAppendBuffer.Reader
Syntax
Constructors
Reader(Void*, Int32)
Declaration
public Reader(void *ptr, int length)
Parameters
Reader(ref UnsafeAppendBuffer)
Declaration
public Reader(ref UnsafeAppendBuffer buffer)
Parameters
Fields
Offset
Declaration
Field Value
Ptr
Declaration
public readonly byte *Ptr
Field Value
Size
Declaration
Field Value
Properties
EndOfBuffer
Returns true if end of buffer is reached.
Declaration
public bool EndOfBuffer { get; }
Property Value
Methods
ReadNext(Int32)
Declaration
public void *ReadNext(int structSize)
Parameters
Type |
Name |
Description |
Int32 |
structSize |
|
Returns
ReadNext(out String)
Read string data from buffer.
Declaration
public void ReadNext(out string value)
Parameters
Type |
Name |
Description |
String |
value |
Output string value.
|
ReadNext<T>()
Declaration
public T ReadNext<T>()
where T : struct
Returns
Type Parameters
Name |
Description |
T |
Source type of elements.
|
ReadNext<T>(out T)
Declaration
public void ReadNext<T>(out T value)
where T : struct
Parameters
Type |
Name |
Description |
T |
value |
|
Type Parameters
Name |
Description |
T |
Source type of elements.
|
ReadNext<T>(out NativeArray<T>, Allocator)
Declaration
public void ReadNext<T>(out NativeArray<T> value, Allocator allocator)
where T : struct
Parameters
Type Parameters
Name |
Description |
T |
Source type of elements.
|
ReadNextArray<T>(out Int32)
Declaration
public void *ReadNextArray<T>(out int length)
where T : struct
Parameters
Type |
Name |
Description |
Int32 |
length |
|
Returns
Type Parameters
Name |
Description |
T |
Source type of elements.
|