Show / Hide Table of Contents

Struct RawInt128

An immutable POF RawInt128 value.

Inherited Members
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public struct RawInt128

Constructors

RawInt128(byte[])

Constructs an RawInt128 value.

Declaration
public RawInt128(byte[] bytes)
Parameters
Type Name Description
byte[] bytes

The array of signed bytes representing RawInt128 value.

RawInt128(byte[], bool)

Constructs an RawInt128 value.

Declaration
public RawInt128(byte[] bytes, bool isNegative)
Parameters
Type Name Description
byte[] bytes

The array of bytes representing RawInt128 value.

bool isNegative

Flag representing whether this RawInt128 value is a negative number.

RawInt128(sbyte[])

Constructs an RawInt128 value.

Declaration
public RawInt128(sbyte[] bytes)
Parameters
Type Name Description
sbyte[] bytes

The array of signed bytes representing RawInt128 value.

RawInt128(sbyte[], bool)

Constructs an RawInt128 value.

Declaration
public RawInt128(sbyte[] bytes, bool isNegative)
Parameters
Type Name Description
sbyte[] bytes

The array of signed bytes representing RawInt128 value.

bool isNegative

Flag representing whether this RawInt128 value is a negative number.

Properties

IsNegative

Returns if this RawInt128 is a negative number.

Declaration
public bool IsNegative { get; }
Property Value
Type Description
bool

IsZero

Gets if this is a zero value.

Declaration
public bool IsZero { get; }
Property Value
Type Description
bool

Length

Returns the size of RawInt128 value.

Declaration
public int Length { get; }
Property Value
Type Description
int

The size of RawInt128.

Value

Gets the Int128 value as array of byte values.

Declaration
public sbyte[] Value { get; }
Property Value
Type Description
sbyte[]

Array of signed bytes representing Int128.

Methods

Equals(object)

Compare this object with another for equality.

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

Another object to compare to for equality.

Returns
Type Description
bool

true if this object is equal to the other object.

Overrides
ValueType.Equals(object)

GetHashCode()

Obtain the hashcode for this object.

Declaration
public override int GetHashCode()
Returns
Type Description
int

An integer hashcode.

Overrides
ValueType.GetHashCode()

ToDecimal()

Returns Decimal value of this object.

Declaration
public decimal ToDecimal()
Returns
Type Description
decimal

Decimal value of this object.

ToDecimal(byte)

Returns Decimal value of this object with given scale.

Declaration
public decimal ToDecimal(byte scale)
Parameters
Type Name Description
byte scale

Scale value used for constructing a Decimal result.

Returns
Type Description
decimal

Decimal value of this object.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.