Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafeAppendBuffer.Reader

A reader for UnsafeAppendBuffer.
Read time 1 minuteLast updated 8 days ago

Definition

public struct UnsafeAppendBuffer.Reader

Fields

Value

Description

OffsetThe location of the next read (expressed as a byte offset from the start).
PtrThe internal buffer where the content is stored.
SizeThe length in bytes of the append buffer's content.

Constructors

Constructor

Description

Reader(System.Void*,System.Int32)Initializes and returns an instance of UnsafeAppendBuffer.Reader that reads from a buffer.
Reader(Unity.Collections.LowLevel.Unsafe.UnsafeAppendBuffer@)Initializes and returns an instance of UnsafeAppendBuffer.Reader.

Properties

Property

Description

EndOfBufferWhether the offset has advanced past the last of the append buffer's content.

Methods

Method

Description

ReadNextReads an element from the append buffer.
ReadNextArrayReads an array from the append buffer.