// --------------------------------------------------------------------------- boolean isNull() { if (FMemory.bytes() == null) return true; return false; }
// --------------------------------------------------------------------------- public void resize(int value) throws AException { FMemory = new AMemory(value, FMemory); FMemory.setParent(this); }
// --------------------------------------------------------------------------- public void clear() { FMemory.clear(); }
// --------------------------------------------------------------------------- public void set(byte[] buf) throws AException { if (buf.length != FMemory.getSize()) throw new AException( "buf.length!=FMemory.getSize() " + buf.length + "!=" + FMemory.getSize()); for (int q = 0; q < FMemory.getSize(); q++) FMemory.set(q, buf[q]); }
// --------------------------------------------------------------------------- // @Deprecated // public byte[] bytes() // { // return FMemory.bytes(); // } // --------------------------------------------------------------------------- public byte[] get() { if (FMemory.bytes() == null) return null; byte[] buf = new byte[FMemory.getSize()]; for (int q = 0; q < buf.length; q++) buf[q] = FMemory.bytes()[q]; return buf; }
// --------------------------------------------------------------------------- public int getSize() { return FMemory.getSize(); }
// --------------------------------------------------------------------------- public final void assign(final AData value) throws AException { FMemory = new AMemory(value.FMemory); FMemory.setParent(this); }
// --------------------------------------------------------------------------- private void initialize() { FMemory = new AMemory(); FMemory.setParent(this); }