Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Reader

Initializes and returns an instance of UnsafeAppendBuffer.Reader.
Read time 1 minuteLast updated 10 days ago

Definition

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

The buffer to read as an UnsafeAppendBuffer.

length

The length in bytes of the

Remarks

The buffer will be read "as if" it is an UnsafeAppendBuffer whether it was originally allocated as one or not.