@Override public Data createData(final long capacity) { return new DataImpl(); } }
putNull(); putBoolean((Boolean) o); putUnsignedByte((UnsignedByte)o); putByte((Byte)o); putUnsignedShort((UnsignedShort)o); putShort((Short)o); putUnsignedInteger((UnsignedInteger)o); putInt((Integer)o); putChar((Character)o); putUnsignedLong((UnsignedLong)o); putLong((Long)o); putTimestamp((Date)o); putFloat((Float)o); putDouble((Double)o); putDecimal32((Decimal32)o);
@Override public void putDescribedType(DescribedType dt) { putElement(new DescribedTypeElement(_parent,_current)); enter(); putObject(dt.getDescriptor()); putObject(dt.getDescribed()); exit(); }
@Override public Binary encode() { byte[] data = new byte[(int)encodedSize()]; ByteBuffer buf = ByteBuffer.wrap(data); encode(buf); return new Binary(data); }
@Override public void putBinary(byte[] bytes) { putBinary(new Binary(bytes)); }
@Override public Binary encode() { int size = 0; Element elt = _first; while(elt != null) { size += elt.size(); elt = elt.next(); } byte[] data = new byte[size]; ByteBuffer buf = ByteBuffer.wrap(data); encode(buf); return new Binary(data); }
putNull(); putBoolean((Boolean) o); putUnsignedByte((UnsignedByte)o); putByte((Byte)o); putUnsignedShort((UnsignedShort)o); putShort((Short)o); putUnsignedInteger((UnsignedInteger)o); putInt((Integer)o); putChar((Character)o); putUnsignedLong((UnsignedLong)o); putLong((Long)o); putTimestamp((Date)o); putFloat((Float)o); putDouble((Double)o); putDecimal32((Decimal32)o);
@Override public void putDescribedType(DescribedType dt) { putElement(new DescribedTypeElement(_parent,_current)); enter(); putObject(dt.getDescriptor()); putObject(dt.getDescribed()); exit(); }
@Override public Binary encode() { byte[] data = new byte[(int)encodedSize()]; ByteBuffer buf = ByteBuffer.wrap(data); encode(buf); return new Binary(data); }
@Override public void putBinary(byte[] bytes) { putBinary(new Binary(bytes)); }
putNull(); putBoolean((Boolean) o); putUnsignedByte((UnsignedByte)o); putByte((Byte)o); putUnsignedShort((UnsignedShort)o); putShort((Short)o); putUnsignedInteger((UnsignedInteger)o); putInt((Integer)o); putChar((Character)o); putUnsignedLong((UnsignedLong)o); putLong((Long)o); putTimestamp((Date)o); putFloat((Float)o); putDouble((Double)o); putDecimal32((Decimal32)o);
@Override public void putDescribedType(DescribedType dt) { putElement(new DescribedTypeElement(_parent,_current)); enter(); putObject(dt.getDescriptor()); putObject(dt.getDescribed()); exit(); }
@Override public void putBinary(byte[] bytes) { putBinary(new Binary(bytes)); }
public static Data create() { return new DataImpl(); }