• Home
  • Raw
  • Download

Lines Matching refs:data

70     public static BerTlv decode(byte[] data, int startIndex) throws ParserException {  in decode()  argument
71 return BerTlv.decode(data, startIndex, true); in decode()
75 public static BerTlv decode(byte[] data, int startIndex, boolean containsAllData) in decode() argument
78 if (data == null || data.length == 0) { in decode()
86 if (curIndex < data.length) { in decode()
87 int temp = data[curIndex++] & 0xff; in decode()
91 if (curIndex < data.length) { in decode()
92 tag = ((temp & 0xff) << 8) | (data[curIndex++] & 0xff); in decode()
95 "Index " + curIndex + " out of range! [0..[" + data.length); in decode()
104 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); in decode()
109 if (curIndex < data.length) { in decode()
110 int temp = data[curIndex++] & 0xff; in decode()
114 if (curIndex < data.length) { in decode()
115 length = data[curIndex++] & 0xff; in decode()
119 if (containsAllData && data.length < length + curIndex) { in decode()
124 "Index " + curIndex + " out of range! [0..[" + data.length); in decode()
127 if ((curIndex + 1) < data.length) { in decode()
128 length = ((data[curIndex] & 0xff) << 8) | (data[curIndex + 1] & 0xff); in decode()
130 throw new ParserException("Index out of range! [0..[" + data.length); in decode()
136 if (containsAllData && data.length < length + curIndex) { in decode()
140 if ((curIndex + 2) < data.length) { in decode()
142 ((data[curIndex] & 0xff) << 16) in decode()
143 | ((data[curIndex + 1] & 0xff) << 8) in decode()
144 | (data[curIndex + 2] & 0xff); in decode()
146 throw new ParserException("Index out of range! [0..[" + data.length); in decode()
152 if (containsAllData && data.length < length + curIndex) { in decode()
159 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); in decode()
162 return new BerTlv(data, tag, curIndex, length); in decode()
237 byte[] data = new byte[mValueLength]; in getValue()
239 System.arraycopy(mRawData, mValueIndex, data, 0, mValueLength); in getValue()
241 return data; in getValue()