serialize

fun serialize(buffer: ByteBuffer): Unit