C# Class FOnline.NativeFields

ファイルを表示 Open project: wladimiiir/vault112 Class Usage Examples

Public Methods

Method Description
GetBoolean ( IntPtr ptr, int offset ) : bool
GetByte ( IntPtr ptr, int offset ) : byte
GetInt16 ( IntPtr ptr, int offset ) : short
GetInt32 ( IntPtr ptr, int offset ) : int
GetIntPtr ( IntPtr ptr, int offset ) : IntPtr
GetSByte ( IntPtr ptr, int offset ) : sbyte
GetUInt16 ( IntPtr ptr, int offset ) : ushort
GetUInt32 ( IntPtr ptr, int offset ) : uint
InitFieldOffsets ( Type type ) : void

Iterates over all fields with prefix offset and set them the native type field offsets.

SetBoolean ( IntPtr ptr, int offset, bool value ) : void
SetByte ( IntPtr ptr, int offset, byte value ) : void
SetInt16 ( IntPtr ptr, int offset, short value ) : void
SetInt32 ( IntPtr ptr, int offset, int value ) : void
SetIntPtr ( IntPtr ptr, int offset, IntPtr value ) : void
SetSByte ( IntPtr ptr, int offset, sbyte value ) : void
SetUInt16 ( IntPtr ptr, int offset, ushort value ) : void
SetUInt32 ( IntPtr ptr, int offset, uint value ) : void

Private Methods

Method Description
GetFieldOffset ( string typename, string fieldname ) : int

Method Details

GetBoolean() public static method

public static GetBoolean ( IntPtr ptr, int offset ) : bool
ptr System.IntPtr
offset int
return bool

GetByte() public static method

public static GetByte ( IntPtr ptr, int offset ) : byte
ptr System.IntPtr
offset int
return byte

GetInt16() public static method

public static GetInt16 ( IntPtr ptr, int offset ) : short
ptr System.IntPtr
offset int
return short

GetInt32() public static method

public static GetInt32 ( IntPtr ptr, int offset ) : int
ptr System.IntPtr
offset int
return int

GetIntPtr() public static method

public static GetIntPtr ( IntPtr ptr, int offset ) : IntPtr
ptr System.IntPtr
offset int
return System.IntPtr

GetSByte() public static method

public static GetSByte ( IntPtr ptr, int offset ) : sbyte
ptr System.IntPtr
offset int
return sbyte

GetUInt16() public static method

public static GetUInt16 ( IntPtr ptr, int offset ) : ushort
ptr System.IntPtr
offset int
return ushort

GetUInt32() public static method

public static GetUInt32 ( IntPtr ptr, int offset ) : uint
ptr System.IntPtr
offset int
return uint

InitFieldOffsets() public static method

Iterates over all fields with prefix offset and set them the native type field offsets.
public static InitFieldOffsets ( Type type ) : void
type System.Type /// Type. ///
return void

SetBoolean() public static method

public static SetBoolean ( IntPtr ptr, int offset, bool value ) : void
ptr System.IntPtr
offset int
value bool
return void

SetByte() public static method

public static SetByte ( IntPtr ptr, int offset, byte value ) : void
ptr System.IntPtr
offset int
value byte
return void

SetInt16() public static method

public static SetInt16 ( IntPtr ptr, int offset, short value ) : void
ptr System.IntPtr
offset int
value short
return void

SetInt32() public static method

public static SetInt32 ( IntPtr ptr, int offset, int value ) : void
ptr System.IntPtr
offset int
value int
return void

SetIntPtr() public static method

public static SetIntPtr ( IntPtr ptr, int offset, IntPtr value ) : void
ptr System.IntPtr
offset int
value System.IntPtr
return void

SetSByte() public static method

public static SetSByte ( IntPtr ptr, int offset, sbyte value ) : void
ptr System.IntPtr
offset int
value sbyte
return void

SetUInt16() public static method

public static SetUInt16 ( IntPtr ptr, int offset, ushort value ) : void
ptr System.IntPtr
offset int
value ushort
return void

SetUInt32() public static method

public static SetUInt32 ( IntPtr ptr, int offset, uint value ) : void
ptr System.IntPtr
offset int
value uint
return void