Table of Contents

Class Data

Namespace
GB
Assembly
GBSharp.Framework.dll

Reading a BinaryAsset.

public static class Data
Inheritance
Data
Inherited Members

Methods

Length(BinaryAsset)

How many bytes the file held.

[Native("gbs_data_length")]
public static ushort Length(BinaryAsset asset)

Parameters

asset BinaryAsset

Returns

ushort

Read(BinaryAsset, ushort)

One byte, by index. Not bounds-checked: the cartridge is not readable past its end.

[Native("gbs_data_read")]
public static byte Read(BinaryAsset asset, ushort index)

Parameters

asset BinaryAsset
index ushort

Returns

byte