docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Write

    Write(byte[], int, int)

    When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    byte[] buffer

    An array of bytes. This method copies count bytes from buffer to the current stream.

    int offset

    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.

    int count

    The number of bytes to be written to the current stream.

    Overrides
    Stream.Write(byte[], int, int)
    Exceptions
    Type Condition
    ArgumentException

    The sum of offset and count is greater than the buffer length.

    ArgumentNullException

    buffer is null.

    ArgumentOutOfRangeException

    offset or count is negative.

    IOException

    An I/O error occured, such as the specified file cannot be found.

    NotSupportedException

    The stream does not support writing.

    ObjectDisposedException

    Write(byte[], int, int) was called after the stream was closed.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)