Lines Matching refs:curLen
148 int curLen = 0;
150 return curLen;
155 return curLen;
164 curLen = (curLen << 8) + (data[dataPos++] & 0xff);
166 curLen = (lenByte & LEN_MASK);
168 return curLen;
180 int curLen = 0;
192 curLen = (curLen << 8) + (data[dataPos++] & 0xff);
194 curLen = (lenByte & LEN_MASK);
195 writeLength(curLen);
196 writeValue(curLen);
199 private void writeLength(int curLen) {
200 if (curLen < 128) {
201 newData[newDataPos++] = (byte)curLen;
203 } else if (curLen < (1 << 8)) {
205 newData[newDataPos++] = (byte)curLen;
207 } else if (curLen < (1 << 16)) {
209 newData[newDataPos++] = (byte)(curLen >> 8);
210 newData[newDataPos++] = (byte)curLen;
212 } else if (curLen < (1 << 24)) {
214 newData[newDataPos++] = (byte)(curLen >> 16);
215 newData[newDataPos++] = (byte)(curLen >> 8);
216 newData[newDataPos++] = (byte)curLen;
220 newData[newDataPos++] = (byte)(curLen >> 24);
221 newData[newDataPos++] = (byte)(curLen >> 16);
222 newData[newDataPos++] = (byte)(curLen >> 8);
223 newData[newDataPos++] = (byte)curLen;
227 private byte[] getLengthBytes(int curLen) {
231 if (curLen < 128) {
233 lenBytes[index++] = (byte)curLen;
235 } else if (curLen < (1 << 8)) {
238 lenBytes[index++] = (byte)curLen;
240 } else if (curLen < (1 << 16)) {
243 lenBytes[index++] = (byte)(curLen >> 8);
244 lenBytes[index++] = (byte)curLen;
246 } else if (curLen < (1 << 24)) {
249 lenBytes[index++] = (byte)(curLen >> 16);
250 lenBytes[index++] = (byte)(curLen >> 8);
251 lenBytes[index++] = (byte)curLen;
256 lenBytes[index++] = (byte)(curLen >> 24);
257 lenBytes[index++] = (byte)(curLen >> 16);
258 lenBytes[index++] = (byte)(curLen >> 8);
259 lenBytes[index++] = (byte)curLen;
287 private void parseValue(int curLen) {
288 dataPos += curLen;
294 private void writeValue(int curLen) {
295 for (int i=0; i < curLen; i++)