func SerializeToByteArray(what core.Serializer) bytearray.ByteArray { var output bytearray.ByteArray what.Serialize(&output) return output }
func SerializeToBuffer(what core.Serializer) []byte { buf := bytes.NewBuffer(nil) what.Serialize(buf) return buf.Bytes() }