scalus.serialization.flat
Members list
Type members
Classlikes
Prealigned Arrays of bytes PreAligned a ≡ PreAligned {preFiller :: Filler, preValue :: a}
Prealigned Arrays of bytes PreAligned a ≡ PreAligned {preFiller :: Filler, preValue :: a}
Filler ≡ FillerBit Filler | FillerEnd
Array v = A0 | A1 v (Array v) | A2 v v (Array v) ... | A255 ... (Array v)
Attributes
- Supertypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ArrayByteFlatobject SIRLetFlagsFlatobject SIRPositionFlatobject given_Flat_Dataobject given_Flat_Optionobject given_Flat_SIRVarStoragetrait HashConsedFlat[A]object given_HashConsedFlat_Moduleobject given_HashConsedFlat_TypeVarobject PlainIntFlatobject ToExprHSSIRFlatobject ToExprHSSIRTypeFlatobject given_Flat_BigIntobject given_Flat_Booleanobject given_Flat_Intobject given_Flat_Longobject given_Flat_Naturalobject given_Flat_Stringobject given_Flat_Unitobject given_Flat_ByteStringobject given_Flat_DefaultFunobject given_Flat_Dataobject given_Flat_DeBruijnedProgramobject given_Flat_TermShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FlatInstances.type
Objects are hash-consed during restoring from file. Note, that identityHashCode can be different on the different VM-s, so it is not safe to reky on it. value-based hash-code now is not determenistics on recuresive data structures with self-references. So, we use identityHashCode on VN which store file and restore internal references on other VN.
Objects are hash-consed during restoring from file. Note, that identityHashCode can be different on the different VM-s, so it is not safe to reky on it. value-based hash-code now is not determenistics on recuresive data structures with self-references. So, we use identityHashCode on VN which store file and restore internal references on other VN.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HashConsed.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
object given_HashConsedFlat_Moduleobject given_HashConsedFlat_TypeVarobject PlainIntFlatobject ToExprHSSIRFlatobject ToExprHSSIRTypeFlat
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HashConsedFlat.type
Attributes
- Supertypes
- Known subtypes
-
object ConstrDeclFlatobject DataDeclFlatobject SIRTypeCaseClassFlatobject SIRTypeNonCaseModuleFlatobject SIRTypeSumCaseClassFlat
When we read from the HashConsedRead.State, we can have forward references, which will be resolved after the whole structure is readed. Here, HashConsedRef can hold object ro Ref or object of some intermediate representation, which holds other refs.
When we read from the HashConsedRead.State, we can have forward references, which will be resolved after the whole structure is readed. Here, HashConsedRef can hold object ro Ref or object of some intermediate representation, which holds other refs.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class SIRTypeHashConsedRefclass CachedTaggedRef[A]class ConstRef[A]class ForwardRef[A]class MutRef[A]Show all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HashConsedRef.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AnnotationsDeclFlatobject BindingFlatobject ModuleHashSetReprFlatobject SIRCaseHashConsedFlatobject SIRConstHashConsedFlatobject SIRDeclHashConsedFlatobject SIRHashConsedFlatobject SIRLetHashConsedFlatobject SIRTypeHashConsedFlatobject SIRTypeTypeProxyFlatobject SIRVarHashConsedFlatobject TypeBindingFlatobject ConstrDeclFlatobject DataDeclFlatobject SIRTypeCaseClassFlatobject SIRTypeNonCaseModuleFlatobject SIRTypeSumCaseClassFlatShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HashConsedReprFlat.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
PlainIntFlat.type
Attributes
- Supertypes
- Self type
-
given_Flat_BigInt.type
Attributes
- Supertypes
- Self type
-
given_Flat_Boolean.type
Attributes
- Supertypes
- Self type
-
given_Flat_Int.type
Attributes
- Supertypes
- Self type
-
given_Flat_Long.type
Attributes
- Supertypes
- Self type
-
given_Flat_Natural.type
Attributes
- Supertypes
- Self type
-
given_Flat_String.type
Attributes
- Supertypes
- Self type
-
given_Flat_Unit.type
Types
Value members
Concrete methods
ZigZag encoding https://gist.github.com/mfuerstenau/ba870a29e16536fdbaba Maps negative values to positive values while going back and forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...)
ZigZag encoding https://gist.github.com/mfuerstenau/ba870a29e16536fdbaba Maps negative values to positive values while going back and forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...)