@Override public Decimal128 getDecimal128() { if(_current instanceof Decimal128Element) { return ((Decimal128Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }
@Override public int size() { return isElementOfArray() ? 16 : 17; }
@Override public void putDecimal128(Decimal128 d) { putElement(new Decimal128Element(_parent,_current,d)); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 17) { b.put((byte)0x94); } b.putLong(_value.getMostSignificantBits()); b.putLong(_value.getLeastSignificantBits()); return size; } else { return 0; } } }
@Override public void putDecimal128(Decimal128 d) { putElement(new Decimal128Element(_parent,_current,d)); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 17) { b.put((byte)0x94); } b.putLong(_value.getMostSignificantBits()); b.putLong(_value.getLeastSignificantBits()); return size; } else { return 0; } } }
@Override public int size() { return isElementOfArray() ? 16 : 17; }
@Override public void putDecimal128(Decimal128 d) { putElement(new Decimal128Element(_parent,_current,d)); }
@Override public Decimal128 getDecimal128() { if(_current instanceof Decimal128Element) { return ((Decimal128Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }
@Override public int encode(ByteBuffer b) { int size = size(); if(b.remaining()>=size) { if(size == 17) { b.put((byte)0x94); } b.putLong(_value.getMostSignificantBits()); b.putLong(_value.getLeastSignificantBits()); return size; } else { return 0; } } }
@Override public int size() { return isElementOfArray() ? 16 : 17; }
@Override public Decimal128 getDecimal128() { if(_current instanceof Decimal128Element) { return ((Decimal128Element)_current).getValue(); } throw new IllegalStateException("Current value not decimal32"); }