@Override public Decimal32 getDecimal32() { if(_current instanceof Decimal32Element) { return ((Decimal32Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }
@Override public int size() { return isElementOfArray() ? 4 : 5; }
@Override public void putDecimal32(Decimal32 d) { putElement(new Decimal32Element(_parent,_current,d)); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 5) { b.put((byte)0x74); } b.putInt(_value.getBits()); return size; } else { return 0; } } }
@Override public void putDecimal32(Decimal32 d) { putElement(new Decimal32Element(_parent,_current,d)); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 5) { b.put((byte)0x74); } b.putInt(_value.getBits()); return size; } else { return 0; } } }
@Override public int size() { return isElementOfArray() ? 4 : 5; }
@Override public void putDecimal32(Decimal32 d) { putElement(new Decimal32Element(_parent,_current,d)); }
@Override public Decimal32 getDecimal32() { if(_current instanceof Decimal32Element) { return ((Decimal32Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 5) { b.put((byte)0x74); } b.putInt(_value.getBits()); return size; } else { return 0; } } }
@Override public int size() { return isElementOfArray() ? 4 : 5; }
@Override public Decimal32 getDecimal32() { if(_current instanceof Decimal32Element) { return ((Decimal32Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }