Classes Files

Wombat::MamaPrice::NativeMethods

Public Functions

  Name
int mamaPrice_create(ref IntPtr nativeHandle)
int mamaPrice_copy(IntPtr dest, IntPtr src)
int mamaPrice_destroy(IntPtr nativeHandle)
int mamaPrice_clear(IntPtr nativeHandle)
int mamaPrice_add(IntPtr dest, IntPtr rhs)
int mamaPrice_subtract(IntPtr dest, IntPtr rhs)
int mamaPrice_equal(IntPtr lhs, IntPtr rhs)
double mamaPrice_compare(IntPtr lhs, IntPtr rhs)
int mamaPrice_setValue(IntPtr nativeHandle, double val)
int mamaPrice_setPrecision(IntPtr nativeHandle, int precision)
int mamaPrice_setHints(IntPtr nativeHandle, byte hints)
int mamaPrice_setWithHints(IntPtr nativeHandle, double val, byte hints)
int mamaPrice_setFromString(IntPtr nativeHandle, string str)
int mamaPrice_getValue(IntPtr nativeHandle, ref double val)
int mamaPrice_getPrecision(IntPtr nativeHandle, ref int precision)
int mamaPrice_getHints(IntPtr nativeHandle, ref byte hints)
int mamaPrice_getWithHints(IntPtr nativeHandle, ref double value, ref int precision)
int mamaPrice_getAsString(IntPtr nativeHandle, StringBuilder buf, int length)
int mamaPrice_negate(IntPtr nativeHandle)
int mamaPrice_isZero(IntPtr nativeHandle, ref bool result)
int mamaPrice_decimals2Precision(int places)
int mamaPrice_denom2Precision(int denominator)
int mamaPrice_precision2Decimals(int precision)
int mamaPrice_precision2Denom(int precision)

Public Functions Documentation

function mamaPrice_create

int mamaPrice_create(
    ref IntPtr nativeHandle
)

function mamaPrice_copy

int mamaPrice_copy(
    IntPtr dest,
    IntPtr src
)

function mamaPrice_destroy

int mamaPrice_destroy(
    IntPtr nativeHandle
)

function mamaPrice_clear

int mamaPrice_clear(
    IntPtr nativeHandle
)

function mamaPrice_add

int mamaPrice_add(
    IntPtr dest,
    IntPtr rhs
)

function mamaPrice_subtract

int mamaPrice_subtract(
    IntPtr dest,
    IntPtr rhs
)

function mamaPrice_equal

int mamaPrice_equal(
    IntPtr lhs,
    IntPtr rhs
)

function mamaPrice_compare

double mamaPrice_compare(
    IntPtr lhs,
    IntPtr rhs
)

function mamaPrice_setValue

int mamaPrice_setValue(
    IntPtr nativeHandle,
    double val
)

function mamaPrice_setPrecision

int mamaPrice_setPrecision(
    IntPtr nativeHandle,
    int precision
)

function mamaPrice_setHints

int mamaPrice_setHints(
    IntPtr nativeHandle,
    byte hints
)

function mamaPrice_setWithHints

int mamaPrice_setWithHints(
    IntPtr nativeHandle,
    double val,
    byte hints
)

function mamaPrice_setFromString

int mamaPrice_setFromString(
    IntPtr nativeHandle,
    string str
)

function mamaPrice_getValue

int mamaPrice_getValue(
    IntPtr nativeHandle,
    ref double val
)

function mamaPrice_getPrecision

int mamaPrice_getPrecision(
    IntPtr nativeHandle,
    ref int precision
)

function mamaPrice_getHints

int mamaPrice_getHints(
    IntPtr nativeHandle,
    ref byte hints
)

function mamaPrice_getWithHints

int mamaPrice_getWithHints(
    IntPtr nativeHandle,
    ref double value,
    ref int precision
)

function mamaPrice_getAsString

int mamaPrice_getAsString(
    IntPtr nativeHandle,
    StringBuilder buf,
    int length
)

function mamaPrice_negate

int mamaPrice_negate(
    IntPtr nativeHandle
)

function mamaPrice_isZero

int mamaPrice_isZero(
    IntPtr nativeHandle,
    ref bool result
)

function mamaPrice_decimals2Precision

int mamaPrice_decimals2Precision(
    int places
)

function mamaPrice_denom2Precision

int mamaPrice_denom2Precision(
    int denominator
)

function mamaPrice_precision2Decimals

int mamaPrice_precision2Decimals(
    int precision
)

function mamaPrice_precision2Denom

int mamaPrice_precision2Denom(
    int precision
)

Updated on 2023-03-31 at 15:29:32 +0100