halotukozak.mcodec

Members list

Type members

Classlikes

trait BsonCodecs

Manual codecs for BSON-native types with no natural JSON/CBOR representation. Each detects whether it is running against the BSON backend (via the BsonExtOutput/BsonExtInput opportunistic capability the BSON value-position reader/writer implements) and uses the native BSON type tag there; on every other backend it falls back to a plain string (or, for BsonRegex, a two-field object) encoding.

Manual codecs for BSON-native types with no natural JSON/CBOR representation. Each detects whether it is running against the BSON backend (via the BsonExtOutput/BsonExtInput opportunistic capability the BSON value-position reader/writer implements) and uses the native BSON type tag there; on every other backend it falls back to a plain string (or, for BsonRegex, a two-field object) encoding.

Attributes

Source
BsonCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MCodec
Self type
MCodec.type
trait BsonExtInput

Opportunistic capability for BSON-native scalar types with no cross-format equivalent.

Opportunistic capability for BSON-native scalar types with no cross-format equivalent.

Attributes

Source
BsonInput.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Opportunistic capability for BSON-native scalar types with no cross-format equivalent.

Opportunistic capability for BSON-native scalar types with no cross-format equivalent.

Attributes

Source
BsonOutput.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final class BsonFieldInput(reader: BsonReader, val fieldName: String, tag: Int) extends BsonValueInput, FieldInput

Attributes

Source
BsonInput.scala
Supertypes
trait FieldInput
trait BsonExtInput
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
final class BsonListInput(reader: BsonReader) extends ListInput

Attributes

Source
BsonInput.scala
Supertypes
trait ListInput
class Object
trait Matchable
class Any
final class BsonListOutput(buf: BsonBuffer) extends ListOutput

Attributes

Source
BsonOutput.scala
Supertypes
trait ListOutput
class Object
trait Matchable
class Any
final class BsonObjectInput(reader: BsonReader) extends ObjectInput

Attributes

Source
BsonInput.scala
Supertypes
trait ObjectInput
class Object
trait Matchable
class Any
final class BsonObjectOutput(buf: BsonBuffer) extends ObjectOutput

Attributes

Source
BsonOutput.scala
Supertypes
trait ObjectOutput
class Object
trait Matchable
class Any
final class BsonReader(bytes: Array[Byte])

Attributes

Source
BsonInput.scala
Supertypes
class Object
trait Matchable
class Any
final case class BsonRegex(pattern: String, options: String)

A BSON regular expression (type 0x0B): a pattern plus MongoDB-style single-char options.

A BSON regular expression (type 0x0B): a pattern plus MongoDB-style single-char options.

Attributes

Source
BsonTypes.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class BsonRootInput(reader: BsonReader) extends Input

The true top level of a BSON stream — only a document is legal here (see BsonRootOutput).

The true top level of a BSON stream — only a document is legal here (see BsonRootOutput).

Attributes

Source
BsonInput.scala
Supertypes
trait Input
class Object
trait Matchable
class Any
final class BsonRootOutput(buf: BsonBuffer) extends Output

The true top level of a BSON stream. Per the BSON spec every encoded value is a document (there is no bare top-level scalar/array), so only writeObject() is legal here.

The true top level of a BSON stream. Per the BSON spec every encoded value is a document (there is no bare top-level scalar/array), so only writeObject() is legal here.

Attributes

Source
BsonOutput.scala
Supertypes
trait Output
class Object
trait Matchable
class Any
class BsonValueInput(reader: BsonReader, tag: Int) extends InputAndSimpleInput, BsonExtInput

Attributes

Companion
object
Source
BsonInput.scala
Supertypes
trait BsonExtInput
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
class
Source
BsonInput.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class BsonValueOutput(buf: BsonBuffer, name: String) extends OutputAndSimpleOutput, BsonExtOutput

A field/element value position. Unlike CBOR, a BSON element is `` — the tag precedes the name, but we only learn the type once the codec calls one of the write* methods below. So the tag + name are emitted lazily, on first write.

A field/element value position. Unlike CBOR, a BSON element is `` — the tag precedes the name, but we only learn the type once the codec calls one of the write* methods below. So the tag + name are emitted lazily, on first write.

Attributes

Source
BsonOutput.scala
Supertypes
trait SimpleOutput
trait Output
class Object
trait Matchable
class Any
Show all
final class CapturedFieldInput(val fieldName: String, value: CapturedValue) extends CapturedInput, FieldInput

Attributes

Source
Replay.scala
Supertypes
trait FieldInput
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all

Attributes

Source
Replay.scala
Supertypes
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
Known subtypes
final class CapturedListInput(items: Vector[CapturedValue]) extends ListInput

Attributes

Source
Replay.scala
Supertypes
trait ListInput
class Object
trait Matchable
class Any

Attributes

Companion
object
Source
Replay.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object CapturedValue

Attributes

Companion
enum
Source
Replay.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final class CaseReadFailed extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final class CborFieldInput(reader: CborReader, val fieldName: String) extends CborInput, FieldInput

Attributes

Source
CborInput.scala
Supertypes
trait FieldInput
class CborInput
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
class CborInput(reader: CborReader) extends InputAndSimpleInput

Attributes

Source
CborInput.scala
Supertypes
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
Known subtypes
final class CborListInput(reader: CborReader) extends ListInput

Attributes

Source
CborInput.scala
Supertypes
trait ListInput
class Object
trait Matchable
class Any
final class CborListOutput(out: ByteArrayOutputStream) extends ListOutput

Attributes

Source
CborOutput.scala
Supertypes
trait ListOutput
class Object
trait Matchable
class Any
final class CborObjectInput(reader: CborReader) extends ObjectInput

Attributes

Source
CborInput.scala
Supertypes
trait ObjectInput
class Object
trait Matchable
class Any
final class CborObjectOutput(out: ByteArrayOutputStream) extends ObjectOutput

Attributes

Source
CborOutput.scala
Supertypes
trait ObjectOutput
class Object
trait Matchable
class Any
final class CborOutput(out: ByteArrayOutputStream) extends OutputAndSimpleOutput

Attributes

Source
CborOutput.scala
Supertypes
trait SimpleOutput
trait Output
class Object
trait Matchable
class Any
Show all
final class CborReader(bytes: Array[Byte])

Attributes

Source
CborInput.scala
Supertypes
class Object
trait Matchable
class Any
trait Derivation

Attributes

Source
Derivation.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MCodec
Self type
MCodec.type
final class EnumStringCodec[T](typeName: String, caseNames: Array[String], caseCodecs: => Array[MCodec[Any]], ordinalOf: T => Int) extends SimpleCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait SimpleCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all
trait FieldInput extends Input

Attributes

Source
Input.scala
Supertypes
trait Input
class Object
trait Matchable
class Any
Known subtypes
final class FieldReadFailed extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final class FlatSumCodec[T](typeName: String, caseNames: Array[String], caseCodecs: => Array[MCodec[Any]], ordinalOf: T => Int, caseFieldName: String, defaultCaseIdx: Int) extends ObjectCodec[T], SizedCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait SizedCodec[T]
trait ObjectCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all
trait Input

Attributes

Source
Input.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Input.scala
Supertypes
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Known subtypes
enum InputKind

Attributes

Source
Input.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait JavaCodecs

Attributes

Source
JavaCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MCodec
Self type
MCodec.type
final case class JsCode(code: String)

BSON JavaScript code (type 0x0D, without scope).

BSON JavaScript code (type 0x0D, without scope).

Attributes

Source
BsonTypes.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Json

Attributes

Source
Json.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Json.type
final class JsonFieldInput(reader: JsonReader) extends JsonInput, FieldInput

Attributes

Source
JsonInput.scala
Supertypes
trait FieldInput
class JsonInput
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
class JsonInput(reader: JsonReader) extends InputAndSimpleInput

Attributes

Source
JsonInput.scala
Supertypes
trait SimpleInput
trait Input
class Object
trait Matchable
class Any
Show all
Known subtypes
final class JsonListInput(reader: JsonReader) extends ListInput

Attributes

Source
JsonInput.scala
Supertypes
trait ListInput
class Object
trait Matchable
class Any
final class JsonListOutput(sb: StringBuilder) extends ListOutput

Attributes

Source
JsonOutput.scala
Supertypes
trait ListOutput
class Object
trait Matchable
class Any
final class JsonObjectInput(reader: JsonReader) extends ObjectInput

Attributes

Source
JsonInput.scala
Supertypes
trait ObjectInput
class Object
trait Matchable
class Any
final class JsonObjectOutput(sb: StringBuilder) extends ObjectOutput

Attributes

Source
JsonOutput.scala
Supertypes
trait ObjectOutput
class Object
trait Matchable
class Any
final class JsonOutput(sb: StringBuilder) extends OutputAndSimpleOutput

Attributes

Source
JsonOutput.scala
Supertypes
trait SimpleOutput
trait Output
class Object
trait Matchable
class Any
Show all
final class JsonReader(s: String)

Attributes

Source
JsonInput.scala
Supertypes
class Object
trait Matchable
class Any
enum JsonToken

Attributes

Source
JsonInput.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait ListCodec[T] extends NullSafeCodec[T]

Attributes

Source
BaseCodecs.scala
Supertypes
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Known subtypes
class StdCodecs.this.PairsMapCodec[K, V]
class StdCodecs.this.TupleCodec[T]
final class ListElementReadFailed extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait ListInput extends SequentialInput

Attributes

Source
Input.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Output.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Source
MCodec.scala
Supertypes
trait BsonCodecs
trait Derivation
trait JavaCodecs
trait ManualCodecs
trait StdCodecs
class Object
trait Matchable
class Any
Show all
Self type
MCodec.type
trait MCodec[T]

Attributes

Companion
object
Source
MCodec.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait NullSafeCodec[T]
trait ListCodec[T]
class StdCodecs.this.PairsMapCodec[K, V]
class StdCodecs.this.TupleCodec[T]
trait ObjectCodec[T]
class FlatSumCodec[T]
class StdCodecs.this.ObjectMapCodec[K, V]
class NestedSumCodec[T]
class ProductCodec[T]
class SingletonCodec[T]
trait SimpleCodec[T]
class EnumStringCodec[T]
object StdCodecs.this.bigIntCodec
object StdCodecs.this.booleanCodec
object StdCodecs.this.byteCodec
object StdCodecs.this.charCodec
object StdCodecs.this.dateCodec
object StdCodecs.this.doubleCodec
object StdCodecs.this.floatCodec
object StdCodecs.this.intCodec
object StdCodecs.this.longCodec
object StdCodecs.this.shortCodec
object StdCodecs.this.stringCodec
object StdCodecs.this.symbolCodec
object StdCodecs.this.uuidCodec
class TransparentCodec[T, E]
Show all
Self type
MCodec[T]
trait MKeyCodec[K]

Attributes

Companion
object
Source
MKeyCodec.scala
Supertypes
class Object
trait Matchable
class Any
object MKeyCodec

Attributes

Companion
trait
Source
MKeyCodec.scala
Supertypes
class Object
trait Matchable
class Any
Self type
MKeyCodec.type
trait ManualCodecs

Attributes

Source
ManualCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MCodec
final class MapFieldReadFailed extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object Marker

Attributes

Companion
trait
Source
Marker.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Marker.type
trait Marker

Attributes

Companion
object
Source
Marker.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case object MaxKey

BSON MaxKey (type 0x7F) — sorts after every other BSON value.

BSON MaxKey (type 0x7F) — sorts after every other BSON value.

Attributes

Source
BsonTypes.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
MaxKey.type
case object MinKey

BSON MinKey (type 0xFF) — sorts before every other BSON value.

BSON MinKey (type 0xFF) — sorts before every other BSON value.

Attributes

Source
BsonTypes.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
MinKey.type
final class MissingCase(reason: String, path: List[PathSegment], rootType: String | Null, cause: Throwable | Null) extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final class MissingField(reason: String, path: List[PathSegment], rootType: String | Null, cause: Throwable | Null) extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final class NestedSumCodec[T](typeName: String, caseNames: Array[String], caseCodecs: => Array[MCodec[Any]], ordinalOf: T => Int, defaultCaseIdx: Int) extends ObjectCodec[T], SizedCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait SizedCodec[T]
trait ObjectCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all
final class NotSingleField(reason: String, path: List[PathSegment], rootType: String | Null, cause: Throwable | Null) extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait NullSafeCodec[T] extends MCodec[T]

Attributes

Source
BaseCodecs.scala
Supertypes
trait MCodec[T]
class Object
trait Matchable
class Any
Known subtypes
trait ListCodec[T]
class StdCodecs.this.PairsMapCodec[K, V]
class StdCodecs.this.TupleCodec[T]
trait ObjectCodec[T]
class FlatSumCodec[T]
class StdCodecs.this.ObjectMapCodec[K, V]
class NestedSumCodec[T]
class ProductCodec[T]
class SingletonCodec[T]
trait SimpleCodec[T]
class EnumStringCodec[T]
object StdCodecs.this.bigIntCodec
object StdCodecs.this.booleanCodec
object StdCodecs.this.byteCodec
object StdCodecs.this.charCodec
object StdCodecs.this.dateCodec
object StdCodecs.this.doubleCodec
object StdCodecs.this.floatCodec
object StdCodecs.this.intCodec
object StdCodecs.this.longCodec
object StdCodecs.this.shortCodec
object StdCodecs.this.stringCodec
object StdCodecs.this.symbolCodec
object StdCodecs.this.uuidCodec
Show all
trait ObjectCodec[T] extends NullSafeCodec[T]

Attributes

Source
BaseCodecs.scala
Supertypes
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Known subtypes
class FlatSumCodec[T]
class StdCodecs.this.ObjectMapCodec[K, V]
class NestedSumCodec[T]
class ProductCodec[T]
class SingletonCodec[T]
final class ObjectId extends AnyVal

A 12-byte MongoDB ObjectId. BSON-native (type 0x07); falls back to a 24-char hex string elsewhere.

A 12-byte MongoDB ObjectId. BSON-native (type 0x07); falls back to a 24-char hex string elsewhere.

Attributes

Companion
object
Source
BsonTypes.scala
Supertypes
class AnyVal
trait Matchable
class Any
object ObjectId

Attributes

Companion
class
Source
BsonTypes.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ObjectId.type

Attributes

Source
Input.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Output.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Output

Attributes

Source
Output.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Output.scala
Supertypes
trait SimpleOutput
trait Output
class Object
trait Matchable
class Any
Known subtypes
object PathSegment

Attributes

Companion
enum
Source
Failures.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
Failures.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class ProductCodec[T](typeName: String, labels: Array[String], childCodecsByName: => Array[MCodec[Any]], defaults: Array[Any | NotExists], optionalFlags: Array[Boolean], isOption: Array[Boolean], transientDefaultFlags: Array[Boolean], outOfOrderFlags: Array[Boolean], fromArray: Array[Any] => T, genLabels: Array[String], genGetters: Array[T => Any], genCodecsByName: => Array[MCodec[Any]]) extends ObjectCodec[T], SizedCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait SizedCodec[T]
trait ObjectCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all
object ReadFailure

Attributes

Companion
class
Source
Failures.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ReadFailure extends RuntimeException

Attributes

Companion
object
Source
Failures.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
final class ReplayObjectInput(fields: Vector[(String, CapturedValue)]) extends ObjectInput

Attributes

Source
Replay.scala
Supertypes
trait ObjectInput
class Object
trait Matchable
class Any

Attributes

Source
Input.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Output.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SimpleCodec[T] extends NullSafeCodec[T]

Attributes

Source
BaseCodecs.scala
Supertypes
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Known subtypes
class EnumStringCodec[T]
object StdCodecs.this.bigIntCodec
object StdCodecs.this.booleanCodec
object StdCodecs.this.byteCodec
object StdCodecs.this.charCodec
object StdCodecs.this.dateCodec
object StdCodecs.this.doubleCodec
object StdCodecs.this.floatCodec
object StdCodecs.this.intCodec
object StdCodecs.this.longCodec
object StdCodecs.this.shortCodec
object StdCodecs.this.stringCodec
object StdCodecs.this.symbolCodec
object StdCodecs.this.uuidCodec
Show all
trait SimpleInput

Attributes

Source
Input.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait SimpleOutput

Attributes

Source
Output.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final class SingletonCodec[T](val value: T) extends ObjectCodec[T], SizedCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait SizedCodec[T]
trait ObjectCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all
trait SizedCodec[T]

A codec able to report the exact number of elements/fields it will write for a value.

A codec able to report the exact number of elements/fields it will write for a value.

Attributes

Source
BaseCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FlatSumCodec[T]
class NestedSumCodec[T]
class ProductCodec[T]
class SingletonCodec[T]
trait StdCodecs

Attributes

Source
StdCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object MCodec
final class TransparentCodec[T, E](wrap: E => T, unwrap: T => E, inner: MCodec[E]) extends MCodec[T]

Attributes

Source
DerivedCodecs.scala
Supertypes
trait MCodec[T]
class Object
trait Matchable
class Any
final class UnknownCase(reason: String, path: List[PathSegment], rootType: String | Null, cause: Throwable | Null) extends ReadFailure

Attributes

Source
Failures.scala
Supertypes
class ReadFailure
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
class WriteFailure(msg: String, cause: Throwable | Null) extends RuntimeException

Attributes

Source
Failures.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

inline def withSegment[A](inline seg: PathSegment)(inline body: A): A

Attributes

Source
Failures.scala

Givens

Givens

given jEnumCodec: [E <: Enum[E] : ClassTag] => MCodec[E]

Attributes

Source
JavaEnumCodec.scala

Extensions

Extensions

extension (out: Output)
def withMarkers(markers: Marker*): Output

Attributes

Source
Marker.scala