Encodes a successful result into a binary envelope.
result
ByteData encodeSuccessEnvelope(Object? result);