Struct UnsafeAppendBuffer.Reader | Collections | 0.6.0-preview.9
docs.unity3d.com
    Show / Hide Table of Contents

    Struct UnsafeAppendBuffer.Reader

    Buffer reader.

    Namespace: Unity.Collections.LowLevel.Unsafe
    Syntax
    public struct Reader

    Constructors

    Reader(Void*, Int32)

    Reader constructor.

    Declaration
    public Reader(void *ptr, int length)
    Parameters
    Type Name Description
    Void* ptr
    Int32 length

    Reader(ref UnsafeAppendBuffer)

    Reader constructor.

    Declaration
    public Reader(ref UnsafeAppendBuffer buffer)
    Parameters
    Type Name Description
    UnsafeAppendBuffer buffer

    Fields

    Offset

    Declaration
    public int Offset
    Field Value
    Type Description
    Int32

    Ptr

    Declaration
    public readonly byte *Ptr
    Field Value
    Type Description
    Byte*

    Size

    Declaration
    public readonly int Size
    Field Value
    Type Description
    Int32

    Properties

    EndOfBuffer

    Returns true if end of buffer is reached.

    Declaration
    public bool EndOfBuffer { get; }
    Property Value
    Type Description
    Boolean

    Methods

    ReadNext(Int32)

    Read data from buffer.

    Declaration
    public void *ReadNext(int structSize)
    Parameters
    Type Name Description
    Int32 structSize
    Returns
    Type Description
    Void*

    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>()

    Read data from buffer.

    Declaration
    public T ReadNext<T>()
        where T : struct
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Source type of elements.

    ReadNext<T>(out T)

    Read data from buffer.

    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)

    Read data from buffer.

    Declaration
    public void ReadNext<T>(out NativeArray<T> value, Allocator allocator)
        where T : struct
    Parameters
    Type Name Description
    NativeArray<T> value
    Allocator allocator

    A member of the Unity.Collections.Allocator enumeration.

    Type Parameters
    Name Description
    T

    Source type of elements.

    ReadNextArray<T>(out Int32)

    Read data from buffer.

    Declaration
    public void *ReadNextArray<T>(out int length)
        where T : struct
    Parameters
    Type Name Description
    Int32 length
    Returns
    Type Description
    Void*
    Type Parameters
    Name Description
    T

    Source type of elements.

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023