@Override
    public short[] getShorts() {
        try {
            int n = in.readInt();
            if (n < 0) {
            	return null;
            }
           	short[] r = new short[n];
            for(int i=0;i<n;i++) {
            	r[i] = in.readShort();
            }
            return r;
        } catch (IOException e) {
        	return new short[0];
        }
    }
Constructor for new ObjectStorageStreamAdapter
@param in input stream to read from
Ghidra/Framework/Generic/src/main/java/ghidra/util/ObjectStorageStreamAdapter.java