Serialize the Thrift object into a byte array. The process is simple, just clear the byte array output, write the object into it, and grab the raw bytes. @param base The object to serialize @return Serialized object in byte[] format
(TBase base)
| 75 | * @return Serialized object in byte[] format |
| 76 | */ |
| 77 | public byte[] serialize(TBase base) throws TException { |
| 78 | baos_.reset(); |
| 79 | base.write(protocol_); |
| 80 | return baos_.toByteArray(); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Serialize the Thrift object into a Java string, using a specified |
no test coverage detected