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

model.CompanyNameBSONCodec.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 CompanyNameBSONCodec : AbstractBSONCodec() {

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


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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy