A wrapper class to be able to use ~
s an infix method
A class representing unpickle failures
A class representing successful unpicklings
A base class representing unpickler result.
A class represenenting ~
-pairs
A pickler for array values
A pickler for values of type Boolean
, represented as the literals true
or false
.
A pickler for values of type Byte
, represented as integer literals
A pickler for values of type Char
, represented as string literals of length 1
Same as p.cond(condition)
A pickler for values of type Double
, represented as floating point literals
Same as p | q
A pickler for values of type Float
, represented as floating point literals
A converter from binary functions to functions over ~
-pairs
A pickler for values of type Int
, represented as integer literals
A picklers that handles iterators.
A picklers that handles iterators. It pickles all values
returned by an iterator separated by commas.
When unpickling, it always returns an UnpickleSuccess
containing an iterator.
This iterator returns 0 or more values that are obtained by unpickling
until a closing parenthesis, bracket or brace or the end of input is encountered.
This means that iterator picklers should not be directly followed by ~
because the pickler would also read any values belonging to the second
part of the ~
-pair.
What's usually done instead is that the iterator pickler is wrapped and labelled to handle other kinds of sequences.
A pickler the handles instances of classes that have an empty constructor.
A pickler the handles instances of classes that have an empty constructor.
It represents than as $new ( <name of class> )
.
When unpickling, a new instance of the class is created using the empty
constructor of the class via Class.forName(<name of class>).newInstance()
.
Same as p.labelled(label)
.
A pickler for list values
A pickler for values of type Long
, represented as integer literals
A conditional pickler for the scala.None
object
Same as p.orNull
A pickler for optional values
The implicit Pickler
value for type T
.
The implicit Pickler
value for type T
. Equivalent to implicitly[Pickler[T]]
.
Same as p ~ q
A pickler for values of type Short
, represented as integer literals
A conditional pickler for singleton objects.
A conditional pickler for singleton objects. It represents these
with the object's underlying class as a label.
Example: Object scala.None would be represented as scala.None$()
.
A conditional pickler for instances of class scala.Some
A pickler for values of type String
, represented as string literals
An converter from unctions returning Options over pair to functions returning ~
-pairs
The converted function will raise a MatchError
where the original function returned
a None
.
An converter from unctions returning Options over pair to functions returning ~
-pairs
The converted function will raise a MatchError
where the original function returned
a None
. This converter is useful for turning unapply
methods of case classes
into wrapper methods that can be passed as second argument to wrap
.
A pickler for pairs, represented as ~
-pairs
A pickler for 3-tuples, represented as ~
-tuples
A pickler for 4-tuples, represented as ~
-tuples
A pickler for values of type Unit
, represented by the empty character string
A pickler for vector values
Same as p.wrap(in)(out)