docs.unity.cn
    Show / Hide Table of Contents

    Interface BinaryWriter

    An interface that writes primitive types to a binary buffer.

    Namespace: Unity.Entities.Serialization
    Syntax
    public interface BinaryWriter : IDisposable

    Properties

    Name Description
    Position

    Gets or sets the current write position of the BinaryWriter.

    Methods

    Name Description
    WriteBytes(Void*, Int32)

    Writes the specified number of bytes.

    Extension Methods

    BlobAssetSerializeExtensions.Write<T>(BinaryWriter, BlobAssetReference<T>)
    BinaryWriterExtensions.Write(BinaryWriter, Byte)
    BinaryWriterExtensions.Write(BinaryWriter, Int32)
    BinaryWriterExtensions.Write(BinaryWriter, UInt64)
    BinaryWriterExtensions.Write(BinaryWriter, Byte[])
    BinaryWriterExtensions.WriteArray<T>(BinaryWriter, NativeArray<T>)
    BinaryWriterExtensions.WriteList<T>(BinaryWriter, NativeList<T>)
    BinaryWriterExtensions.WriteList<T>(BinaryWriter, NativeList<T>, Int32, Int32)

    See Also

    MemoryBinaryWriter
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023