private bool readShortOK(out short value) { byte[] bytes = new byte[2]; bool res = readOK(bytes, 2); value = 0; if (res) { value = (short)(bytes[0] & 0xFF); value += (short)((bytes[1] & 0xFF) << 8); } return res; }