sendBlock() is used to read block and its metadata and stream the data to either a client or to another datanode.
@param out stream to which the block is written to
@param baseStream optional. if non-null, out is assumed to be a wrapper over this stream. This enables optimizations for sending the data, e.g. {@link SocketOutputStream#transferToFully(FileChannel,long,int)}.
@return total bytes reads, including crc.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.