Public Member Functions | Static Public Member Functions | Public Attributes | Properties

Romulus.Nes.pHRom Struct Reference

Represents an offset within a headered rom. More...

List of all members.

Public Member Functions

 pHRom (int offset)
 Creates a pHRom with the specified offset.
override string ToString ()
 Gets the pointer as a string.

Static Public Member Functions

static operator pUhRom (pHRom ptr)
 Defines a coversion from an unheadered offset to a headered offset. The conversion adjusts for the header.
static operator pHRom (pUhRom ptr)
 Defines a coversion from a headered offset to an unheadered offset. The conversion adjusts for the header.
static operator pHRom (int i)
 Provides an explicit conversion from an int to a pHRom.
static operator int (pHRom i)
 Provides an explicit conversion from a pHRom to an int.
static pHRom operator+ (pHRom ptr, int offset)
 Defines the + operator between a pointer and an int to allow for pointer math.
static pHRom operator- (pHRom ptr, int offset)
 Defines the - operator between a pointer and an int to allow for pointer math.

Public Attributes

const int HeaderSize = 0x10
 Defines the size of a standard iNES header.

Properties

int Offset [get, set]
 Gets the value of this pHRom.

Detailed Description

Represents an offset within a headered rom.


Constructor & Destructor Documentation

Romulus.Nes.pHRom.pHRom ( int  offset  ) 

Creates a pHRom with the specified offset.

Parameters:
offset The offset.

Member Function Documentation

static Romulus.Nes.pHRom.operator int ( pHRom  i  )  [explicit, static]

Provides an explicit conversion from a pHRom to an int.

Parameters:
i The value to convert.
Returns:
The value as an int.
static Romulus.Nes.pHRom.operator pHRom ( pUhRom  ptr  )  [explicit, static]

Defines a coversion from a headered offset to an unheadered offset. The conversion adjusts for the header.

Parameters:
ptr The unheadered offset.
Returns:
The headered offset.
static Romulus.Nes.pHRom.operator pHRom ( int  i  )  [explicit, static]

Provides an explicit conversion from an int to a pHRom.

Parameters:
i The value to convert.
Returns:
The value as a pHRom.
static Romulus.Nes.pHRom.operator pUhRom ( pHRom  ptr  )  [explicit, static]

Defines a coversion from an unheadered offset to a headered offset. The conversion adjusts for the header.

Parameters:
ptr The headered offset.
Returns:
The unheadered offset.
static pHRom Romulus.Nes.pHRom.operator+ ( pHRom  ptr,
int  offset 
) [static]

Defines the + operator between a pointer and an int to allow for pointer math.

Parameters:
ptr The pointer to modify.
offset The amount to offset the pointer.
Returns:
The modified pointer.
static pHRom Romulus.Nes.pHRom.operator- ( pHRom  ptr,
int  offset 
) [static]

Defines the - operator between a pointer and an int to allow for pointer math.

Parameters:
ptr The pointer to modify.
offset The amount to offset the pointer.
Returns:
The modified pointer.
override string Romulus.Nes.pHRom.ToString (  ) 

Gets the pointer as a string.

Returns:
A zebra.

Member Data Documentation

const int Romulus.Nes.pHRom.HeaderSize = 0x10

Defines the size of a standard iNES header.


Property Documentation

int Romulus.Nes.pHRom.Offset [get, set]

Gets the value of this pHRom.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events