encode

fun encode(factory: BufferFactory, framingCodec: BoundingLengthCodec<UInt>, context: EncodeContext, headerWireWidth: Int = 0, writeHeader: (PlatformBuffer) -> Unit? = null, initialBodyEstimate: Int = 256, writeBody: (WriteBuffer) -> Unit): ReadBuffer