Java Byte Array Big Endian bytesHighFirstToChar(byte[] bytes, int start)

Here you can find the source of bytesHighFirstToChar(byte[] bytes, int start)

Description

bytes High First To Char

License

Apache License

Declaration

public static char bytesHighFirstToChar(byte[] bytes, int start) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static char bytesHighFirstToChar(byte[] bytes, int start) {
        char c = (char) (((bytes[start] & 0xFF) << 8) | (bytes[start + 1] & 0xFF));
        return c;
    }/*from ww  w  .ja  v a 2 s. com*/
}

Related

  1. bytesBE2long(byte[] b, int off)
  2. BytesBEToFloat(final byte[] value)
  3. BytesBEToInt(final byte[] buf)
  4. bytesHighFirstToFloat(byte[] bytes, int start)
  5. bytesHighFirstToInt(byte[] bytes, int start)