CborObjectOutput

halotukozak.mcodec.CborObjectOutput
final class CborObjectOutput(out: ByteArrayOutputStream) extends ObjectOutput

Attributes

Source
CborOutput.scala
Graph
Supertypes
trait ObjectOutput
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def declareSize(size: Int): Unit

Attributes

Definition Classes
Source
CborOutput.scala
def finish(): Unit

Attributes

Source
CborOutput.scala
override def wantsDeclaredSize: Boolean

Whether declareSize actually influences the output. Backends that ignore it (JSON) or back-patch the length (BSON) return false, letting a codec skip an otherwise-wasted pre-count pass; length-prefixed backends (CBOR) return true.

Whether declareSize actually influences the output. Backends that ignore it (JSON) or back-patch the length (BSON) return false, letting a codec skip an otherwise-wasted pre-count pass; length-prefixed backends (CBOR) return true.

Attributes

Definition Classes
Source
CborOutput.scala
def writeField(key: String): Output

Attributes

Source
CborOutput.scala

Inherited methods

def hasMarker(marker: Marker): Boolean

Attributes

Inherited from:
SequentialOutput
Source
Output.scala
def knownSize: Int

Attributes

Inherited from:
SequentialOutput
Source
Output.scala