/** * A blob is a serialized Object. This method serializes the object into a * blob and returns the byte array that contains the blob. */ public static byte[] serializeToBlob(Object obj, HeapDataOutputStream hdos) throws IOException { final long start = startSerialization(); hdos.clearForReuse(); DataSerializer.writeObject(obj, hdos); byte[] result = hdos.toByteArray(); endSerialization(start, result.length); return result; }
replyWithData(dm, hdos, null, seriesNum, msgNum++, numSeries, false, fid, false, null); hdos.clearForReuse(); offset = batchMessage.getOffset(); if (offset >= numEvents) {
} else { in.initialize(bytes, 0, bytesLen, version); hdos.clearForReuse();
localHLL.offerHashed(hash); out.clearForReuse();