Class NetBufferTest | Multiplayer HLAPI | 1.0.8
docs.unity3d.com
    Show / Hide Table of Contents

    Class NetBufferTest

    Inheritance
    Object
    NetBufferTest
    Namespace: Global Namespace
    Syntax
    public class NetBufferTest

    Methods

    AttemptToReadABunchOfBytesOutOfBufferBounds_OutOfRangeExceptionRaises()

    Declaration
    public void AttemptToReadABunchOfBytesOutOfBufferBounds_OutOfRangeExceptionRaises()

    AttemptToReadByteOutOfBufferBounds_OutOfRangeExceptionRaises()

    Declaration
    public void AttemptToReadByteOutOfBufferBounds_OutOfRangeExceptionRaises()

    BufferCreated_InitialParametersAreSet()

    Declaration
    public void BufferCreated_InitialParametersAreSet()

    BufferCreatedFromArrayOfBytesHasTheSameLengthAsOriginalArray()

    Declaration
    public void BufferCreatedFromArrayOfBytesHasTheSameLengthAsOriginalArray()

    BufferReferencesTheArrayAndDoesNotCopyItsValues()

    Declaration
    public void BufferReferencesTheArrayAndDoesNotCopyItsValues()

    BufferSizeGrows_NewBufferLengthRoundedUp(Int32, Int32)

    Declaration
    public void BufferSizeGrows_NewBufferLengthRoundedUp(int length, int expectedLength)
    Parameters
    Type Name Description
    Int32 length
    Int32 expectedLength

    BufferSizeGrowsSeveralTimesUntilNewSizeCanHandleAllValuesToWrite(Int32, Int32)

    Declaration
    public void BufferSizeGrowsSeveralTimesUntilNewSizeCanHandleAllValuesToWrite(int length, int expectedLength)
    Parameters
    Type Name Description
    Int32 length
    Int32 expectedLength

    BunchOfBytesCanBeReadAtOnce()

    Declaration
    public void BunchOfBytesCanBeReadAtOnce()

    CanReadOneByte()

    Declaration
    public void CanReadOneByte()

    CanWriteABunchOfBytesAtOnce(Int32, UInt16)

    Declaration
    public void CanWriteABunchOfBytesAtOnce(int arraySize, ushort amountToWrite)
    Parameters
    Type Name Description
    Int32 arraySize
    UInt16 amountToWrite

    CanWriteAtOffset(UInt16, UInt16)

    Declaration
    public void CanWriteAtOffset(ushort offset, ushort count)
    Parameters
    Type Name Description
    UInt16 offset
    UInt16 count

    CanWriteByte()

    Declaration
    public void CanWriteByte()

    CanWriteEightBytes()

    Declaration
    public void CanWriteEightBytes()

    CanWriteFourBytes()

    Declaration
    public void CanWriteFourBytes()

    CanWriteTwoBytes()

    Declaration
    public void CanWriteTwoBytes()

    NewMemoryIsAllocated_ReferenceToOldArrayIsLost()

    Declaration
    public void NewMemoryIsAllocated_ReferenceToOldArrayIsLost()

    ReplaceFunctionReplacesInternalBufferWithProvidedOne()

    Declaration
    public void ReplaceFunctionReplacesInternalBufferWithProvidedOne()

    SeekZeroMovesPositionToZero()

    Declaration
    public void SeekZeroMovesPositionToZero()

    Setup()

    Declaration
    public void Setup()

    WriteBytesCopiesBytesIntoBufferFromCurrentPosition()

    Declaration
    public void WriteBytesCopiesBytesIntoBufferFromCurrentPosition()
    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