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