MCPcopy Create free account
hub / github.com/apache/thrift / serialize

Method serialize

lib/javame/src/org/apache/thrift/TSerializer.java:77–81  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

toStringMethod · 0.95

Calls 3

writeMethod · 0.65
resetMethod · 0.45
toByteArrayMethod · 0.45

Tested by

no test coverage detected