Skip to content

IOFileComponent.GetByte Method ​

Overloads ​

NameDescription
GetByte(Int32)Gets the byte at the specified index.
GetByte<TEnum>(Int32)Gets the byte at the specified index as an enum value.

GetByte(Int32) ​

Gets the byte at the specified index.

c#
protected Byte GetByte(int index);

View source

Parameters ​

NameTypeDescription
indexInt32The index of the byte.

Returns ​

Byte

The byte value.

GetByte<TEnum>(Int32) ​

Gets the byte at the specified index as an enum value.

c#
protected TEnum GetByte<TEnum>(int index)
   where TEnum : struct, Enum;

View source

Type Parameters ​

NameDescription
TEnumThe enum type.

Parameters ​

NameTypeDescription
indexInt32The index of the byte.

Returns ​

TEnum

The enum value.