@Namespace(value="arrow") @NoOffset @Properties(inherit=arrow.class) public class BasicDecimal256 extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
bit_width |
| Constructor and Description |
|---|
BasicDecimal256()
\brief Empty constructor creates a BasicDecimal256 with a value of 0.
|
BasicDecimal256(BasicDecimal128 value)
\brief Convert any integer value into a BasicDecimal256.
|
BasicDecimal256(byte[] bytes) |
BasicDecimal256(ByteBuffer bytes) |
BasicDecimal256(BytePointer bytes)
\brief Create a BasicDecimal256 from an array of bytes.
|
BasicDecimal256(long size)
Native array allocator.
|
BasicDecimal256(Long4Array little_endian_array)
\brief Create a BasicDecimal256 from the two's complement representation.
|
BasicDecimal256(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BasicDecimal256 |
Abs()
\brief Absolute value (in-place)
|
static BasicDecimal256 |
Abs(BasicDecimal256 left)
\brief Absolute value
|
BasicDecimal256 |
addPut(BasicDecimal256 right)
\brief Add a number to this one.
|
static int |
bit_width() |
arrow.DecimalStatus |
Divide(BasicDecimal256 divisor,
BasicDecimal256 result,
BasicDecimal256 remainder)
Divide this number by right and return the result.
|
BasicDecimal256 |
dividePut(BasicDecimal256 right)
\brief In-place division.
|
boolean |
FitsInPrecision(int precision)
\brief Whether this number fits in the given precision
Return true if the number of significant digits is less or equal to
precision. |
BasicDecimal256 |
getPointer(long i) |
static BasicDecimal256 |
GetScaleMultiplier(int scale)
\brief Scale multiplier for given scale value.
|
long |
IsNegative() |
Long4Array |
little_endian_array()
\brief Get the bits of the two's complement representation of the number.
|
BasicDecimal256 |
multiplyPut(BasicDecimal256 right)
\brief Multiply this number by another number.
|
BasicDecimal256 |
Negate()
\brief Negate the current value (in-place)
|
BasicDecimal256 |
position(long position) |
arrow.DecimalStatus |
Rescale(int original_scale,
int new_scale,
BasicDecimal256 out)
\brief Convert BasicDecimal128 from one scale to another
|
BasicDecimal256 |
shiftLeftPut(int bits)
\brief Shift left by the given number of bits.
|
long |
Sign() |
Byte32Array |
ToBytes()
\brief Return the raw bytes of the value in native-endian byte order.
|
void |
ToBytes(byte[] out) |
void |
ToBytes(ByteBuffer out) |
void |
ToBytes(BytePointer out) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic BasicDecimal256(Pointer p)
Pointer(Pointer).public BasicDecimal256(long size)
Pointer.position(long).public BasicDecimal256(@Const @ByRef Long4Array little_endian_array)
public BasicDecimal256()
public BasicDecimal256(@Const @ByRef BasicDecimal128 value)
public BasicDecimal256(@Cast(value="const uint8_t*") BytePointer bytes)
public BasicDecimal256(@Cast(value="const uint8_t*") ByteBuffer bytes)
public BasicDecimal256 position(long position)
public BasicDecimal256 getPointer(long i)
getPointer in class Pointer@MemberGetter public static int bit_width()
@ByRef public BasicDecimal256 Negate()
@ByRef public BasicDecimal256 Abs()
@ByVal public static BasicDecimal256 Abs(@Const @ByRef BasicDecimal256 left)
@ByRef @Name(value="operator +=") public BasicDecimal256 addPut(@Const @ByRef BasicDecimal256 right)
@Const @ByRef public Long4Array little_endian_array()
@ByVal public Byte32Array ToBytes()
public void ToBytes(@Cast(value="uint8_t*") BytePointer out)
public void ToBytes(@Cast(value="uint8_t*") ByteBuffer out)
@Const @ByRef public static BasicDecimal256 GetScaleMultiplier(int scale)
public arrow.DecimalStatus Rescale(int original_scale, int new_scale, BasicDecimal256 out)
@Cast(value="bool") public boolean FitsInPrecision(int precision)
precision.@ByRef @Name(value="operator *=") public BasicDecimal256 multiplyPut(@Const @ByRef BasicDecimal256 right)
public arrow.DecimalStatus Divide(@Const @ByRef BasicDecimal256 divisor, BasicDecimal256 result, BasicDecimal256 remainder)
divisor - [in] the number to divide byresult - [out] the quotientremainder - [out] the remainder after the division@ByRef @Name(value="operator <<=") public BasicDecimal256 shiftLeftPut(@Cast(value="uint32_t") int bits)
@ByRef @Name(value="operator /=") public BasicDecimal256 dividePut(@Const @ByRef BasicDecimal256 right)
Copyright © 2021. All rights reserved.