Lines Matching refs:bytes

59     private byte[] bytes;  field in Utf8Constant
78 this.bytes = null; in Utf8Constant()
86 public void setBytes(byte[] bytes) in setBytes() argument
88 this.bytes = bytes; in setBytes()
107 return bytes; in getBytes()
116 this.bytes = null; in setString()
159 if (bytes == null) in switchToByteArrayRepresentation()
161 bytes = getByteArrayRepresentation(string); in switchToByteArrayRepresentation()
174 string = getStringRepresentation(bytes); in switchToStringRepresentation()
175 bytes = null; in switchToStringRepresentation()
204 byte[] bytes = new byte[byteLength]; in getByteArrayRepresentation()
214 bytes[byteIndex++] = (byte)TWO_BYTE_CONSTANT1; in getByteArrayRepresentation()
215 bytes[byteIndex++] = (byte)TWO_BYTE_CONSTANT2; in getByteArrayRepresentation()
220 bytes[byteIndex++] = (byte)c; in getByteArrayRepresentation()
225bytes[byteIndex++] = (byte)(TWO_BYTE_CONSTANT1 | ((c >>> TWO_BYTE_SHIFT1) & TWO_BYTE_MASK1)); in getByteArrayRepresentation()
226bytes[byteIndex++] = (byte)(TWO_BYTE_CONSTANT2 | ( c & TWO_BYTE_MASK2)); in getByteArrayRepresentation()
231bytes[byteIndex++] = (byte)(THREE_BYTE_CONSTANT1 | ((c >>> THREE_BYTE_SHIFT1) & THREE_BYTE_MASK1)); in getByteArrayRepresentation()
232bytes[byteIndex++] = (byte)(THREE_BYTE_CONSTANT2 | ((c >>> THREE_BYTE_SHIFT2) & THREE_BYTE_MASK2)); in getByteArrayRepresentation()
233bytes[byteIndex++] = (byte)(THREE_BYTE_CONSTANT3 | ( c & THREE_BYTE_MASK3)); in getByteArrayRepresentation()
237 return bytes; in getByteArrayRepresentation()
244 private String getStringRepresentation(byte[] bytes) throws UnsupportedEncodingException in getStringRepresentation() argument
251 char[] chars = new char[bytes.length]; in getStringRepresentation()
256 while (byteIndex < bytes.length) in getStringRepresentation()
259 int b = bytes[byteIndex++] & 0xff; in getStringRepresentation()
271 … ((bytes[byteIndex++] & TWO_BYTE_MASK2) ) : in getStringRepresentation()
274 … ((bytes[byteIndex++] & THREE_BYTE_MASK2) << THREE_BYTE_SHIFT2) | in getStringRepresentation()
275 … ((bytes[byteIndex++] & THREE_BYTE_MASK3) )); in getStringRepresentation()