class BigIntCodec extends LiteralsCodec[BigInt, JSON]
encodes positive integers as list of (sign * number of digits) :: (digits most to least) relative to base 2^31
Note that this encoding has the property that <= on integers corresponds to lexicographic ordering on lists.
- Source
- JSONCoding.scala
- Alphabetic
- By Inheritance
- BigIntCodec
- LiteralsCodec
- Codec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BigIntCodec(id: GlobalName, synType: Term)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
codeType: ListType
- Definition Classes
- BigIntCodec → Codec
-
def
decode(c: JSON): Term
- Definition Classes
- LiteralsCodec → Codec
-
def
decodeRep(j: JSON): BigInt
- Definition Classes
- BigIntCodec → LiteralsCodec
-
def
encode(t: Term): JSON
- Definition Classes
- LiteralsCodec → Codec
-
def
encodeRep(i: BigInt): JSONArray
- Definition Classes
- BigIntCodec → LiteralsCodec
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
exp: Term
- Definition Classes
- Codec
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val splitter: BigIntSplitter
-
def
strictDecode(c: JSON): Term
data must be validated even if decoding succeeds, e.g., check prime-ness of integer-encoded prime numbers
data must be validated even if decoding succeeds, e.g., check prime-ness of integer-encoded prime numbers
- Definition Classes
- Codec
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
tp: Term
- Definition Classes
- Codec
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()