public byte[] toByteArray() {byte[] result = new byte[LittleEndianConsts.INT_SIZE*2+_value.length];LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream(result,0);try {bos.writeInt(LittleEndianConsts.INT_SIZE + _value.length);bos.writeInt(_format);bos.write(_value);return result;} finally {IOUtils.closeQuietly(bos);}}

public byte [ ] toByteArray ( ) { byte [ ] result = new byte [ LittleEndianConsts . INT_SIZE * 2 + _value . length ] ; LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream ( result , 0 ) ; try { bos . writeInt ( LittleEndianConsts . INT_SIZE + _value . length ) ; bos . writeInt ( _format ) ; bos . write ( _value ) ; return result ; } finally { IOUtils . closeQuietly ( bos ) ; } }
public byte[] ToByteArray(){byte[] result = new byte[Size];LittleEndian.PutInt(result, 0 * LittleEndian.INT_SIZE,LittleEndian.INT_SIZE + _value.Length);LittleEndian.PutInt(result, 1 * LittleEndian.INT_SIZE, _format);System.Array.Copy(_value, 0, result, LittleEndian.INT_SIZE+ LittleEndian.INT_SIZE, _value.Length);return result;}
