/* @Override */ public Dictionary getStructElements() { DictionaryBuilder db = new DictionaryBuilder(DInfo.class.getSimpleName()); db.add("frRect", frRect.getStructElements()); db.addUIntBE("frFlags", frFlags); db.add("frLocation", frLocation.getStructElements()); db.addUIntBE("frView", frView); return db.getResult(); }
public byte[] getBytes() { byte[] result = new byte[STRUCTSIZE]; byte[] tempData; int offset = 0; tempData = frRect.getBytes(); System.arraycopy(tempData, 0, result, offset, tempData.length); offset += tempData.length; System.arraycopy(frFlags, 0, result, offset, frFlags.length); offset += frFlags.length; tempData = frLocation.getBytes(); System.arraycopy(tempData, 0, result, offset, tempData.length); offset += tempData.length; System.arraycopy(frView, 0, result, offset, frView.length); offset += frView.length; return result; }