System.cs |
Top Previous Next |
Pretranslated C# code > Delphi RTL/VCL > System.cs The System.cs file that is delivered with the Delphi2C# installer is only a part of the complete System.cs that is contained the C# version of the Delphi RTL that you will get as owner of Delphi2C# and of Delphi. This part of the System.cs only contains the classes to simulate pointers. The public members of these classes are listed below:
public interface IPointer<T> : IDisposable
int Length int Capacity int Position bool IsNull(); void SetNull(); T Deref(); void Assign(T c, int Index = 0); void Inc(int i); void Dec(int i);
public class PChar : IPointer<char>
public PChar() public PChar(int Size, bool Alloc) public PChar(bool Value) public PChar(char c) public PChar(double Value) public PChar(short Value) public PChar(int Value) public PChar(long Value) public PChar(float Value) public PChar(ushort Value) public PChar(uint Value) public PChar(ulong Value) public PChar(byte[] bytes) public PChar(string S, int Index = 0) public PChar(char[] arr, int Index = 0) public PChar(PChar Other, int Delta = 0) public PChar(Pointer ptr) public char this[int index] public int Length public int Capacity public int Position public bool IsNull() public void SetNull() public char Deref() public IntPtr ToIntPtr() public void FromIntPtr() public void Assign(char c, int Index = 0) public void Assign(string s) public void Inc(int i) public void Dec(int i) public void DerefAdd(int Value) public void DerefSubstract(int Value) public static PChar operator ++(PChar a) public static PChar operator --(PChar a) public override string ToString() public char[] ToCharArray() public void Synchronize(ref string s) public void Synchronize(ref char[] ca) public string Substring(int from, int count) public void Insert(string s) public void Insert(string s, int startIndex) public static bool operator ==(PChar p1, PChar p2) public static bool operator !=(PChar p1, PChar p2) public static PChar operator +(PChar p, int Value) public static PChar operator -(PChar p, int Value) public override bool Equals(object obj) public override int GetHashCode() public static implicit operator Pointer (PChar ptr) public static implicit operator PChar (Pointer ptr) public void Dispose()
public class Pointer : IPointer<object>
public Pointer() public Pointer(int size, bool Alloc) public Pointer(bool Value) public Pointer(char Value) public Pointer(double Value) public Pointer(short Value) public Pointer(int Value) public Pointer(long Value) public Pointer(float Value) public Pointer(ushort Value) public Pointer(uint Value) public Pointer(ulong Value) public Pointer(byte[] bytes) public Pointer(IntPtr ptr, int size = 0, bool disposed = true) public Pointer(Pointer Other) //, int Delta = 0) public bool IsNull() public void SetNull() public int Length public int Capacity public int Position public void Assign(object t, int Index = 0) public void Assign(IntPtr t, int size = 0) public object Deref() public IntPtr GetIntPtr() public byte[] ToBytes() public void FromBytes(byte[] bytes) public void Inc(int i) public void Dec(int i) public override bool Equals(object obj) public override int GetHashCode() public static Pointer operator ++(Pointer a) public static Pointer operator --(Pointer a) public static bool operator ==(Pointer p1, Pointer p2) public static bool operator !=(Pointer p1, Pointer p2) public static Pointer operator +(Pointer p, int Value) public static Pointer operator -(Pointer p, int Value) public static implicit operator IntPtr (Pointer ptr) public static implicit operator Pointer (IntPtr ptr) public static implicit operator uint (Pointer ptr) public static implicit operator Pointer (uint ptr) public void Dispose()
public class Pointer<T>: IPointer<T> where T : new() public Pointer() public Pointer(int Size, bool Alloc) public Pointer(byte[] bytes) public Pointer(T t) public Pointer(IntPtr iptr) public Pointer(List<T> l, int Index = 0) public Pointer(T[] l, int Index = 0) public Pointer(Pointer<T> Other, int Delta = 0) public bool IsNull() public void SetNull() public T this[int index] public int Length public int Capacity public int Position public object Object public void Assign(T t, int Index = 0) public T Deref() public IntPtr ToIntPtr() public byte[] ToBytes() public void FromBytes(byte[] bytes) public T FromIntPtr() public void Inc(int i) public void Dec(int i) public override bool Equals(object obj) public override int GetHashCode() public static Pointer<T> operator ++(Pointer<T> a) public static Pointer<T> operator --(Pointer<T> a) public static bool operator ==(Pointer<T> p1, Pointer<T> p2) public static bool operator !=(Pointer<T> p1, Pointer<T> p2) public static Pointer<T> operator +(Pointer<T> p, int Value) public static Pointer<T> operator -(Pointer<T> p, int Value) public void Dispose()
|
This page belongs to the Delphi2C# Documentation |
Delphi2C# home Content |