public static byte [ ] serialize ( Response response ) { MiniMessagePack . Packer packer = new MiniMessagePack . Packer ( ) ; packer . pack ( VERSION ) ; packer . pack ( RESPONSE_MAGIC ) ; packer . pack ( response . getPayload ( ) ) ; packer . pack ( response . getSignature ( ) ) ; return packer . getBytes ( ) ; }
Serialize a Response into binary representation