Skip to content

Class EndOfBufferException

Namespace: Void.Minecraft.Buffers.Exceptions
Assembly: Void.Minecraft.dll

Indicates an attempt to access data beyond the available buffer size.

public class EndOfBufferException : Exception, ISerializable

Inheritance

objectExceptionEndOfBufferException

Implements

ISerializable

Inherited Members

Exception.GetBaseException(), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, Exception.SerializeObjectState, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

EndOfBufferException(long, long, long)

Indicates an attempt to access data beyond the available buffer size.

public EndOfBufferException(long bufferSize, long bufferPosition, long requestedLength)

Parameters

bufferSize long

The total size of the buffer in bytes.

bufferPosition long

The current read position within the buffer at the time of the failed access.

requestedLength long

The number of bytes that were requested but could not be satisfied.

EndOfBufferException(int, int, int)

Initializes a new instance of the class with the specified buffer size, position, and requested length.

public EndOfBufferException(int bufferSize, int bufferPosition, int requestedLength)

Parameters

bufferSize int

The size of the buffer.

bufferPosition int

The position in the buffer where the read operation was attempted.

requestedLength int

The length of data requested.

EndOfBufferException(nint, nint, nint)

Initializes a new instance of the class with the specified buffer size, position, and requested length.

public EndOfBufferException(nint bufferSize, nint bufferPosition, nint requestedLength)

Parameters

bufferSize nint

The size of the buffer.

bufferPosition nint

The current position in the buffer.

requestedLength nint

The length of data that was requested.

EndOfBufferException(short, short, short)

Initializes a new instance of the class with 16-bit buffer information.

public EndOfBufferException(short bufferSize, short bufferPosition, short requestedLength)

Parameters

bufferSize short

The total size of the buffer.

bufferPosition short

The current position in the buffer where the read was attempted.

requestedLength short

The number of bytes that were requested.

EndOfBufferException(byte, byte, byte)

Initializes a new instance of the class with byte-sized buffer metrics.

public EndOfBufferException(byte bufferSize, byte bufferPosition, byte requestedLength)

Parameters

bufferSize byte

The size of the buffer.

bufferPosition byte

The current position in the buffer.

requestedLength byte

The requested length that would exceed the buffer bounds.

Properties

BufferPosition

The position within the buffer.

public long BufferPosition { get; }

Property Value

long

BufferSize

The size of the buffer in bytes.

public long BufferSize { get; }

Property Value

long

RequestedLength

Gets the requested length.

public long RequestedLength { get; }

Property Value

long