fm.serializer.protobuf

Members list

Type members

Classlikes

final class InvalidProtocolBufferException(msg: String) extends IOException

Attributes

Companion
object
Supertypes
class IOException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
object Protobuf

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Protobuf.type
final class ProtobufByteArrayInput(buffer: Array[Byte], options: ProtobufOptions) extends ProtobufInput

Optimized Input implementation for reading from a byte array that is much more JVM/JIT optimization friendly than reading from an InputStream.

Optimized Input implementation for reading from a byte array that is much more JVM/JIT optimization friendly than reading from an InputStream.

Attributes

Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all
final class ProtobufByteBufferInput(buffer: ByteBuffer, options: ProtobufOptions) extends ProtobufInput

Optimized Input implementation for reading from a byte array that is much more JVM/JIT optimization friendly than reading from an InputStream.

Optimized Input implementation for reading from a byte array that is much more JVM/JIT optimization friendly than reading from an InputStream.

Attributes

Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all
abstract class ProtobufInput extends Input

Attributes

Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all
Known subtypes
final class ProtobufInputStreamInput(is: InputStream, options: ProtobufOptions) extends ProtobufInput

Attributes

Supertypes
trait Input
trait RawInput
trait FieldInput
trait NestedInput
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ProtobufOptions(internStrings: Boolean)

Value parameters

internStrings

Call String.intern() on any strings read

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class ProtobufOutput() extends Output

Modified Protocol Buffers Output

Modified Protocol Buffers Output

The main difference between his and the stock Protocol Buffers Implementation is the handling of repeated fields. In this implementation:

  • We use ONLY packed repeated fields for collections (including non-numeric types)

The Stock Implementation:

  • Optionally uses packed repeated fields for numeric types

Attributes

Supertypes
trait Output
trait RawOutput
trait NestedOutput
trait FieldOutput
class Object
trait Matchable
class Any
Show all
final class ProtobufOutputStreamOutput(var os: OutputStream) extends Output

Modified Protocol Buffers Output

Modified Protocol Buffers Output

The main difference between his and the stock Protocol Buffers Implementation is the handling of repeated fields. In this implementation:

  • We use ONLY packed repeated fields for collections (including non-numeric types)

The Stock Implementation:

  • Optionally uses packed repeated fields for numeric types

Attributes

Supertypes
trait Output
trait RawOutput
trait NestedOutput
trait FieldOutput
class Object
trait Matchable
class Any
Show all
object WireFormat

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
WireFormat.type