コード例 #1
0
 private long getDataLength(long dataPos) {
   byte[] dataLengthBytes = new byte[4];
   forkStream.readFrom(dataPos, dataLengthBytes);
   return Util.unsign(Util.readIntBE(dataLengthBytes));
 }
コード例 #2
0
 public ResourceHeader getHeader() {
   byte[] headerData = new byte[ResourceHeader.length()];
   forkStream.readFullyFrom(0, headerData);
   return new ResourceHeader(headerData, 0);
 }