public UnixOwnersHeader(SubBlockHeader sb, byte[] uoHeader) { super(sb); int pos = 0; ownerNameSize = Raw.readShortLittleEndian(uoHeader, pos) & 0xFFFF; pos += 2; groupNameSize = Raw.readShortLittleEndian(uoHeader, pos) & 0xFFFF; pos += 2; if (pos + ownerNameSize < uoHeader.length) { byte[] ownerBuffer = new byte[ownerNameSize]; System.arraycopy(uoHeader, pos, ownerBuffer, 0, ownerNameSize); owner = new String(ownerBuffer); } pos += ownerNameSize; if (pos + groupNameSize < uoHeader.length) { byte[] groupBuffer = new byte[groupNameSize]; System.arraycopy(uoHeader, pos, groupBuffer, 0, groupNameSize); group = new String(groupBuffer); } }
public int getSummFreq() { return Raw.readShortLittleEndian(mem, pos) & 0xffff; }