All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.utils.io.BytesSlices Maven / Gradle / Ivy

The newest version!
package com.jd.blockchain.utils.io;

/**
 * BytesSlices 表示一组关联的数据片段;
 * 
 * @author huanghaiquan
 *
 */
public interface BytesSlices {

	/**
	 * 总的字节数;包含各个子数据片段之间间隔的头部字节;
	 * 
	 * @return int
	 */
	int getTotalSize();

	/**
	 * 包含的子片段的数量;
	 * 
	 * @return int
	 */
	int getCount();

	/**
	 * 返回一个子数据片段;
	 * 
	 * @param idx 子数据片段的编号;大于等于 0 ,小于总数 {@link #getCount()};
	 * @return bytesSlice
	 */
	BytesSlice getDataSlice(int idx);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy