public static Format readFormat(byte[] src, int index, boolean connectionless) { int value = src[index++] << 24; value |= (src[index++] & 0xff) << 16; value |= (src[index++] & 0xff) << 8; if (!connectionless) value |= src[index] & 0xff; return new Format(value); }
public void writeFormat(byte[] dest, int index, boolean connectionless) { int val = getDataRepresentation(); dest[index++] = (byte) ((val >> 24) & 0xff); dest[index++] = (byte) ((val >> 16) & 0xff); dest[index] = (byte) 0x00; if (!connectionless) dest[++index] = (byte) 0x00; }
public Format readFormat(boolean connectionless) { Format format = Format.readFormat(buf.buf, buf.index, connectionless); buf.index += 4; return format; } public void writeFormat(Format format) {
public void writeFormat(Format format) { format.writeFormat(buf.buf, buf.index, false); buf.index += 4; } public void writeFormat(boolean connectionless) {
public void writeFormat ( Format format ) { format.writeFormat ( buf.buf, buf.index, false ); buf.index += 4; }
public void writeFormat(Format format) { format.writeFormat(buf.buf, buf.index, false); buf.index += 4; } public void writeFormat(boolean connectionless) {
public void writeFormat(byte[] dest, int index, boolean connectionless) { int val = getDataRepresentation(); dest[index++] = (byte) ((val >> 24) & 0xff); dest[index++] = (byte) ((val >> 16) & 0xff); dest[index] = (byte) 0x00; if (!connectionless) dest[++index] = (byte) 0x00; }
public static Format readFormat ( byte[] src, int index, boolean connectionless ) { int value = src[index++] << 24; value |= ( src[index++] & 0xff ) << 16; value |= ( src[index++] & 0xff ) << 8; if ( !connectionless ) value |= src[index] & 0xff; return new Format ( value ); }
public Format readFormat(boolean connectionless) { Format format = Format.readFormat(buf.buf, buf.index, connectionless); buf.index += 4; return format; } public void writeFormat(Format format) {
public void writeFormat(boolean connectionless) { int index = buf.getIndex(); buf.index += connectionless ? 3 : 4; format.writeFormat(buf.buf, index, connectionless); }
public void writeFormat ( byte[] dest, int index, boolean connectionless ) { int val = getDataRepresentation (); dest[index++] = (byte) ( ( val >> 24 ) & 0xff ); dest[index++] = (byte) ( ( val >> 16 ) & 0xff ); dest[index] = (byte)0x00; if ( !connectionless ) dest[++index] = (byte)0x00; }
public static Format readFormat(byte[] src, int index, boolean connectionless) { int value = src[index++] << 24; value |= (src[index++] & 0xff) << 16; value |= (src[index++] & 0xff) << 8; if (!connectionless) value |= src[index] & 0xff; return new Format(value); }
public Format readFormat ( boolean connectionless ) { Format format = Format.readFormat ( buf.buf, buf.index, connectionless ); buf.index += 4; return format; }
public void writeFormat(boolean connectionless) { int index = buf.getIndex(); buf.index += connectionless ? 3 : 4; format.writeFormat(buf.buf, index, connectionless); }
public void writeFormat ( boolean connectionless ) { int index = buf.getIndex (); buf.index += connectionless ? 3 : 4; format.writeFormat ( buf.buf, index, connectionless ); }