| | |
| | | |
| | | @Override |
| | | public byte[] writeToBytes() { |
| | | byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height)); |
| | | byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth)); |
| | | return Utils.merge(heightBytes, depthBytes); |
| | | return Utils.reverse(RadixTools.shortToByte(this.height)); |
| | | |
| | | // byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height)); |
| | | // byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth)); |
| | | // return Utils.merge(heightBytes, depthBytes); |
| | | |
| | | // byte heightByte = (byte) ((this.height == null ? 0 : this.height) & 0xFF); |
| | | // byte depthByte = (byte) ((this.depth == null ? 0 : this.depth) & 0xFF); |
| | | // return Utils.merge(heightByte, depthByte); |
| | | // return new byte[]{ heightByte, depthByte }; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void readFromBytes(byte[] messageBodyBytes) { |
| | | |