Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LibcFunction"/> class.
        /// </summary>
        public LibcFunction()
        {
            this.address = new LibcFunctionAddressResolver();
            this.address.Setup();

            this.stdStringCtorCString = Marshal.GetDelegateForFunctionPointer <StdStringFromCStringDelegate>(this.address.StdStringFromCstring);
            this.stdStringDeallocate  = Marshal.GetDelegateForFunctionPointer <StdStringDeallocateDelegate>(this.address.StdStringDeallocate);
        }
Exemple #2
0
        public LibcFunction(SigScanner scanner)
        {
            Address = new LibcFunctionAddressResolver();
            Address.Setup(scanner);

            this.stdStringCtorCString = Marshal.GetDelegateForFunctionPointer <StdStringFromCStringDelegate>(Address.StdStringFromCstring);
            this.stdStringDeallocate  = Marshal.GetDelegateForFunctionPointer <StdStringDeallocateDelegate>(Address.StdStringDeallocate);
        }