@Test public void testAppendInt0() { buffer.appendInt(666); assertBufferMatches(NULL, NULL, (byte) 0x02, (byte) 0x9a); }
public void appendInt(int data) { byte[] intBuf = new byte[SZ_INT]; intBuf[3] = (byte) (data & 0xff); intBuf[2] = (byte) ((data >>> 8) & 0xff); intBuf[1] = (byte) ((data >>> 16) & 0xff); intBuf[0] = (byte) ((data >>> 24) & 0xff); appendBytes0(intBuf, SZ_INT); }
ByteBuffer extends SmppObject { public void appendInt(int data) { byte[] intBuf = new byte[SZ_INT]; intBuf[3] = (byte) (data & 0xff); intBuf[2] = (byte) ((data >>> 8) & 0xff); intBuf[1] = (byte) ((data >>> 16) & 0xff); intBuf[0] = (byte) ((data >>> 24) & 0xff); appendBytes0(intBuf, SZ_INT); } }
ByteBuffer extends SmppObject { public void appendInt(int data) { byte[] intBuf = new byte[SZ_INT]; intBuf[3] = (byte) (data & 0xff); intBuf[2] = (byte) ((data >>> 8) & 0xff); intBuf[1] = (byte) ((data >>> 16) & 0xff); intBuf[0] = (byte) ((data >>> 24) & 0xff); appendBytes0(intBuf, SZ_INT); } ByteBuffer();  ByteBuffer(byte[] buffer); }
ByteBuffer extends SmppObject { public void appendInt(int data) { byte[] intBuf = new byte[SZ_INT]; intBuf[3] = (byte) (data & 0xff); intBuf[2] = (byte) ((data >>> 8) & 0xff); intBuf[1] = (byte) ((data >>> 16) & 0xff); intBuf[0] = (byte) ((data >>> 24) & 0xff); appendBytes0(intBuf, SZ_INT); } ByteBuffer();  ByteBuffer(byte[] buffer); byte[] getBuffer(); void setBuffer(byte[] buffer); int length(); void appendByte(byte data); void appendShort(short data); void appendInt(int data); void appendCString(String string); void appendCString(String string, String encoding); void appendString(String string); void appendString(String string, String encoding); void appendString(String string, int count); void appendString(String string, int count, String encoding); void appendBuffer(ByteBuffer buf); void appendBytes(ByteBuffer bytes, int count); void appendBytes(byte[] bytes, int count); void appendBytes(byte[] bytes); byte removeByte(); short removeUnsignedByte(); short removeShort(); int removeInt(); int readInt(); String removeCString(); String removeCString(String encoding); String removeString(int size, String encoding); ByteBuffer removeBuffer(int count); ByteBuffer removeBytes(int count); void removeBytes0(int count); ByteBuffer readBytes(int count); String getHexDump(); }
ByteBuffer extends SmppObject { public void appendInt(int data) { byte[] intBuf = new byte[SZ_INT]; intBuf[3] = (byte) (data & 0xff); intBuf[2] = (byte) ((data >>> 8) & 0xff); intBuf[1] = (byte) ((data >>> 16) & 0xff); intBuf[0] = (byte) ((data >>> 24) & 0xff); appendBytes0(intBuf, SZ_INT); } ByteBuffer();  ByteBuffer(byte[] buffer); byte[] getBuffer(); void setBuffer(byte[] buffer); int length(); void appendByte(byte data); void appendShort(short data); void appendInt(int data); void appendCString(String string); void appendCString(String string, String encoding); void appendString(String string); void appendString(String string, String encoding); void appendString(String string, int count); void appendString(String string, int count, String encoding); void appendBuffer(ByteBuffer buf); void appendBytes(ByteBuffer bytes, int count); void appendBytes(byte[] bytes, int count); void appendBytes(byte[] bytes); byte removeByte(); short removeUnsignedByte(); short removeShort(); int removeInt(); int readInt(); String removeCString(); String removeCString(String encoding); String removeString(int size, String encoding); ByteBuffer removeBuffer(int count); ByteBuffer removeBytes(int count); void removeBytes0(int count); ByteBuffer readBytes(int count); String getHexDump();  }