Table of Contents

Struct ThreeBytes

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

For performance, intended to compile equivalently to a byte[3], but more RAM efficient and more GC efficient

public struct ThreeBytes
Inherited Members
Extension Methods

Constructors

ThreeBytes(byte[])

public ThreeBytes(byte[] a)

Parameters

a byte[]

ThreeBytes(int)

public ThreeBytes(int a)

Parameters

a int

Properties

this[int]

public byte this[int i] { get; set; }

Parameters

i int

Property Value

byte

Methods

Clone()

public ThreeBytes Clone()

Returns

ThreeBytes

Operators

implicit operator ThreeBytes(byte[])

public static implicit operator ThreeBytes(byte[] a)

Parameters

a byte[]

Returns

ThreeBytes

implicit operator byte[](ThreeBytes)

public static implicit operator byte[](ThreeBytes a)

Parameters

a ThreeBytes

Returns

byte[]