Data.Int64.Internal
- Package
- purescript-int64
- Repository
- purescript-contrib/purescript-int64
#IsLittleEndian Source
#Long' Source
newtype Long' :: Signedness -> Typenewtype 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 -> Constraintclass SInfo (s :: Signedness) where
Members
ffiSignedness :: SignProxy s -> IsUnsignedtoInt :: Long' s -> Maybe Int
Instances
#complement Source
complement :: forall s. Long' s -> Long' s#fromBytesBE_ Source
fromBytesBE_ :: Fn2 (Array Int) IsUnsigned LongCreates a Long from its big endian byte representation.
#fromBytesLE_ Source
fromBytesLE_ :: Fn2 (Array Int) IsUnsigned LongCreates a Long from its little endian byte representation.
#fromBytes_ Source
fromBytes_ :: Fn3 (Array Int) IsUnsigned IsLittleEndian LongCreates a Long from its byte representation.
#fromInt_ Source
fromInt_ :: Fn2 Int IsUnsigned LongReturns a Long representing the given 32 bit integer value.
#fromNumber_ Source
fromNumber_ :: Fn2 Number IsUnsigned LongReturns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
#fromString_ Source
fromString_ :: EffectFn3 String IsUnsigned Radix LongReturns a Long representation of the given string, written using the specified radix.
#getHighBitsUnsigned_ Source
getHighBitsUnsigned_ :: Long -> NumberGets the high 32 bits as an unsigned integer. Note: Use Internal.getNumberBitsToInt to get back Int
#getHighBits_ Source
getHighBits_ :: Long -> NumberGets the high 32 bits as a signed integer. Note: Use Internal.getNumberBitsToInt to get back Int
#getLowBitsUnsigned_ Source
getLowBitsUnsigned_ :: Long -> NumberGets the low 32 bits as an unsigned integer. Use Internal.getNumberBitsToInt to get back Int
#getLowBits_ Source
getLowBits_ :: Long -> NumberGets the low 32 bits as a signed integer. Use Internal.getNumberBitsToInt to get back Int
#greaterThanOrEqual_ Source
greaterThanOrEqual_ :: Long -> Fn1 Long BooleanTests if this Long's value is greater than or equal the specified's.
#greaterThan_ Source
greaterThan_ :: Long -> Fn1 Long BooleanTests if this Long's value is greater than the specified's.
#isNegative_ Source
isNegative_ :: Long -> BooleanTests if this Long's value is negative.
#isPositive_ Source
isPositive_ :: Long -> BooleanTests if this Long's value is positive.
#lessThanOrEqual_ Source
lessThanOrEqual_ :: Long -> Fn1 Long BooleanTests if this Long's value is less than or equal the specified's.
#maxUnsignedValue_ Source
maxUnsignedValue_ :: LongMaximum unsigned value
#notEquals_ Source
notEquals_ :: Long -> Fn1 Long BooleanTests if this Long's value differs from the specified's.
#numberBitsToInt Source
numberBitsToInt :: Number -> Int#rotateLeft_ Source
rotateLeft_ :: Long -> Fn1 Long LongReturns this Long with bits rotated to the left by the given amount.
#rotateRight_ Source
rotateRight_ :: Long -> Fn1 Long LongReturns this Long with bits rotated to the right by the given amount.
#shiftLeft_ Source
shiftLeft_ :: Long -> Fn1 Long LongReturns this Long with bits shifted to the left by the given amount.
#shiftRightUnsigned_ Source
shiftRightUnsigned_ :: Long -> Fn1 Long LongReturns this Long with bits logically shifted to the right by the given amount.
#shiftRight_ Source
shiftRight_ :: Long -> Fn1 Long LongReturns this Long with bits arithmetically shifted to the right by the given amount.
#toBytes_ Source
toBytes_ :: Long -> IsLittleEndian -> Array IntConverts this Long to its byte representation.
#toUnsigned_ Source
toUnsigned_ :: Long -> LongConverts this Long to unsigned.
#unsigned_ Source
unsigned_ :: Long -> IsUnsigned- Modules
- Data.
Int64 - Data.
Int64. Internal - Data.
UInt64