FixedSizeBuffers

Class FixedSizeBufferExtensions

Extension methods for fixed size buffers.

Inheritance
  • Object
  • FixedSizeBufferExtensions
Declaration
public static class FixedSizeBufferExtensions : Object

Methods

ItemRef<T>(ref FixedSizeBuffer1024<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer1024<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer1024<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer128<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer128<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer128<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer16<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer16<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer16<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer2<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer2<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer2<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer2048<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer2048<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer2048<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer256<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer256<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer256<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer32<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer32<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer32<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer4<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer4<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer4<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer4096<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer4096<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer4096<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer512<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer512<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer512<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer64<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer64<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer64<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer8<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer8<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer8<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer

ItemRef<T>(ref FixedSizeBuffer8192<T>, Int32)

Returns a reference to the item at offset index.

Declaration
public static T ItemRef<T>(this ref FixedSizeBuffer8192<T> buffer, int index)
Parameters
Type Name Description

FixedSizeBuffer8192<T>

buffer

The buffer

Int32

index

The index

Returns
Type Description

T

A reference to the item at offset index.

Type Parameters
Name Description

T

The type of the elements in the buffer