C# Class FOnline.NativeFields

Afficher le fichier Open project: wladimiiir/vault112 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetFieldOffset ( string typename, string fieldname ) : int

Method Details

GetBoolean() public static méthode

public static GetBoolean ( IntPtr ptr, int offset ) : bool
ptr System.IntPtr
offset int
Résultat bool

GetByte() public static méthode

public static GetByte ( IntPtr ptr, int offset ) : byte
ptr System.IntPtr
offset int
Résultat byte

GetInt16() public static méthode

public static GetInt16 ( IntPtr ptr, int offset ) : short
ptr System.IntPtr
offset int
Résultat short

GetInt32() public static méthode

public static GetInt32 ( IntPtr ptr, int offset ) : int
ptr System.IntPtr
offset int
Résultat int

GetIntPtr() public static méthode

public static GetIntPtr ( IntPtr ptr, int offset ) : IntPtr
ptr System.IntPtr
offset int
Résultat System.IntPtr

GetSByte() public static méthode

public static GetSByte ( IntPtr ptr, int offset ) : sbyte
ptr System.IntPtr
offset int
Résultat sbyte

GetUInt16() public static méthode

public static GetUInt16 ( IntPtr ptr, int offset ) : ushort
ptr System.IntPtr
offset int
Résultat ushort

GetUInt32() public static méthode

public static GetUInt32 ( IntPtr ptr, int offset ) : uint
ptr System.IntPtr
offset int
Résultat uint

InitFieldOffsets() public static méthode

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. ///
Résultat void

SetBoolean() public static méthode

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

SetByte() public static méthode

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

SetInt16() public static méthode

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

SetInt32() public static méthode

public static SetInt32 ( IntPtr ptr, int offset, int value ) : void
ptr System.IntPtr
offset int
value int
Résultat void

SetIntPtr() public static méthode

public static SetIntPtr ( IntPtr ptr, int offset, IntPtr value ) : void
ptr System.IntPtr
offset int
value System.IntPtr
Résultat void

SetSByte() public static méthode

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

SetUInt16() public static méthode

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

SetUInt32() public static méthode

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