class
SerPennyIn extends SerInput
Instance Constructors
-
new
SerPennyIn(ins: InStreamReader, isHumanReadable: Boolean = false)
Type Members
-
case class
InMonad(subWtInt: Int) extends ScopeLoc with Product with Serializable
-
case class
InOneOf(subWtInt: Int) extends ScopeLoc with Product with Serializable
-
case class
SPField(fid: Int, wtInt: Int, cleared: Boolean = false) extends Product with Serializable
-
trait
ScopeLoc extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
IS: InStream.type
-
object
InObject extends ScopeLoc with Product with Serializable
-
val
OS: OutStream.type
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
debugString: String
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
isHumanReadable: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
readBoolean(): Boolean
-
def
readByte(): Byte
-
def
readByteArr(): Array[Byte]
-
def
readChar(): Char
-
def
readDouble(): Double
-
def
readFieldBegin(name: String, id: Int): Unit
-
def
readFieldEnd(): Unit
-
def
readInt32(hint: Ser32Hint): Int
-
def
readInt64(hint: Ser64Hint): Long
-
def
readIterable[A](sca: SerReadable[A]): Iterable[A]
-
def
readOneOfBegin(): Either[String, Int]
-
def
readOneOfEnd(): Unit
-
def
readOption[A](sca: SerReadable[A]): Option[A]
-
def
readSerInput(): () ⇒ SerInput
-
def
readString(): String
-
def
readStructBegin(): Unit
-
def
readStructEnd(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
File format:
Structs: WStruct fid 0 is reserved, that is the stop field. so don't use it, ever! foreach field of struct x with fid => field.ordinal, wtBytes => wt(field.type), and encoded=> enc(field.value) ((uvar(fid)<<3) | wtBytes) ~ encoded SVarInt: WSVarInt svar(x) Fixed64: WFixed64 fixed64(x) OneOf: WOneOf uvar(keyId) ~ uvar(wt) ~ encoded(x) Strings: WByteArray uvar(len(x)) ~ bytes(x) Lists: WList if len(xs) == 0 uvar(0) else uvar(len(xs)) ~ wt(xs.elem) ~ rep1(for( x <- xs) yield encoded(x)) Options: WList, same as list but it's length is 0 or 1 only