All Downloads are FREE. Search and download functionalities are using the official Maven repository.

model.FullNameBSONCodec.kt Maven / Gradle / Ivy

There is a newer version: 0.9.27
Show newest version
package com.github.fluidsonic.baku

import org.bson.BsonReader
import org.bson.BsonWriter


internal object FullNameBSONCodec : AbstractBSONCodec() {

	override fun BsonReader.decode(context: BSONCodingContext) =
		FullName(readString())


	override fun BsonWriter.encode(value: FullName, context: BSONCodingContext) {
		writeString(value.value)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy