ScalarCodec

smithy4s.protobuf.internals.ScalarCodec
sealed trait ScalarCodec[A]

A codec for primitive types that are considered Scalar (that is with a wire type that is not length-delimited)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Keywords
  • no keywords
  • final
Inherited
  • Not inherited
  • PrimitiveCodec

Value members

Concrete methods

final def imap[B](to: A => B, from: B => A): ScalarCodec[B]
final def isZero(a: A): Boolean

Inherited and Abstract methods

def read(is: CodedInputStream): A

Attributes

Inherited from:
PrimitiveCodec (hidden)
def sizeNoTag(a: A): Int

Attributes

Inherited from:
PrimitiveCodec (hidden)
def sizeTag(tag: Int, a: A): Int

Attributes

Inherited from:
PrimitiveCodec (hidden)
def wireType: Int

Attributes

Inherited from:
PrimitiveCodec (hidden)
def writeNoTag(a: A, os: CodedOutputStream): Unit

Attributes

Inherited from:
PrimitiveCodec (hidden)
def writeTag(tag: Int, a: A, os: CodedOutputStream): Unit

Attributes

Inherited from:
PrimitiveCodec (hidden)
def zero: A

Attributes

Inherited from:
PrimitiveCodec (hidden)