Reader
Initializes and returns an instance of UnsafeAppendBuffer.Reader.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Constructor
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
Reader(UnsafeAppendBuffer)
Initializes and returns an instance of UnsafeAppendBuffer.Reader.
public Reader(ref UnsafeAppendBuffer buffer)
Parameters
A reference to the append buffer to read.
Reader(void*, int)
Initializes and returns an instance of UnsafeAppendBuffer.Reader that reads from a buffer.
public Reader(void* ptr, int length)
Parameters
Remarks
The buffer will be read "as if" it is an UnsafeAppendBuffer whether it was originally allocated as one or not.