Data.Int64.Internal
- Package
- purescript-int64
- Repository
- purescript-contrib/purescript-int64
#IsLittleEndian Source
#Long' Source
newtype Long' :: Signedness -> Type
newtype Long' (s :: Signedness)
Newtype wrapper for the foreign JavaScript Long
object.
Constructors
Instances
Show (Long' s)
Eq (Long' s)
Ord (Long' s)
Bounded (Long' Signed)
Bounded (Long' Unsigned)
Semiring (Long' Signed)
Semiring (Long' Unsigned)
Ring (Long' Signed)
Ring (Long' Unsigned)
CommutativeRing (Long' Signed)
CommutativeRing (Long' Unsigned)
EuclideanRing (Long' Signed)
EuclideanRing (Long' Unsigned)
(SInfo s) => Arbitrary (Long' s)
#Signedness Source
data Signedness
#SInfo Source
class SInfo :: Signedness -> Constraint
class SInfo (s :: Signedness) where
Members
ffiSignedness :: SignProxy s -> IsUnsigned
toInt :: Long' s -> Maybe Int
Instances
#complement Source
complement :: forall s. Long' s -> Long' s
#fromBytesBE_ Source
fromBytesBE_ :: Fn2 (Array Int) IsUnsigned Long
Creates a Long from its big endian byte representation.
#fromBytesLE_ Source
fromBytesLE_ :: Fn2 (Array Int) IsUnsigned Long
Creates a Long from its little endian byte representation.
#fromBytes_ Source
fromBytes_ :: Fn3 (Array Int) IsUnsigned IsLittleEndian Long
Creates a Long from its byte representation.
#fromInt_ Source
fromInt_ :: Fn2 Int IsUnsigned Long
Returns a Long representing the given 32 bit integer value.
#fromNumber_ Source
fromNumber_ :: Fn2 Number IsUnsigned Long
Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
#fromString_ Source
fromString_ :: EffectFn3 String IsUnsigned Radix Long
Returns a Long representation of the given string, written using the specified radix.
#getHighBitsUnsigned_ Source
getHighBitsUnsigned_ :: Long -> Number
Gets the high 32 bits as an unsigned integer. Note: Use Internal.getNumberBitsToInt to get back Int
#getHighBits_ Source
getHighBits_ :: Long -> Number
Gets the high 32 bits as a signed integer. Note: Use Internal.getNumberBitsToInt to get back Int
#getLowBitsUnsigned_ Source
getLowBitsUnsigned_ :: Long -> Number
Gets the low 32 bits as an unsigned integer. Use Internal.getNumberBitsToInt to get back Int
#getLowBits_ Source
getLowBits_ :: Long -> Number
Gets the low 32 bits as a signed integer. Use Internal.getNumberBitsToInt to get back Int
#greaterThanOrEqual_ Source
greaterThanOrEqual_ :: Long -> Fn1 Long Boolean
Tests if this Long's value is greater than or equal the specified's.
#greaterThan_ Source
greaterThan_ :: Long -> Fn1 Long Boolean
Tests if this Long's value is greater than the specified's.
#isNegative_ Source
isNegative_ :: Long -> Boolean
Tests if this Long's value is negative.
#isPositive_ Source
isPositive_ :: Long -> Boolean
Tests if this Long's value is positive.
#lessThanOrEqual_ Source
lessThanOrEqual_ :: Long -> Fn1 Long Boolean
Tests if this Long's value is less than or equal the specified's.
#maxUnsignedValue_ Source
maxUnsignedValue_ :: Long
Maximum unsigned value
#notEquals_ Source
notEquals_ :: Long -> Fn1 Long Boolean
Tests if this Long's value differs from the specified's.
#numberBitsToInt Source
numberBitsToInt :: Number -> Int
#rotateLeft_ Source
rotateLeft_ :: Long -> Fn1 Long Long
Returns this Long with bits rotated to the left by the given amount.
#rotateRight_ Source
rotateRight_ :: Long -> Fn1 Long Long
Returns this Long with bits rotated to the right by the given amount.
#shiftLeft_ Source
shiftLeft_ :: Long -> Fn1 Long Long
Returns this Long with bits shifted to the left by the given amount.
#shiftRightUnsigned_ Source
shiftRightUnsigned_ :: Long -> Fn1 Long Long
Returns this Long with bits logically shifted to the right by the given amount.
#shiftRight_ Source
shiftRight_ :: Long -> Fn1 Long Long
Returns this Long with bits arithmetically shifted to the right by the given amount.
#toBytes_ Source
toBytes_ :: Long -> IsLittleEndian -> Array Int
Converts this Long to its byte representation.
#toUnsigned_ Source
toUnsigned_ :: Long -> Long
Converts this Long to unsigned.
#unsigned_ Source
unsigned_ :: Long -> IsUnsigned
- Modules
- Data.
Int64 - Data.
Int64. Internal - Data.
UInt64