文档

Unity Engine

Unity Engine

Reader

Initializes and returns an instance of UnsafeAppendBuffer.Reader.
阅读时间1 分钟最后更新于 1 个月前

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.