Home
last modified time | relevance | path

Searched refs:utflen (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DDataOutputStream.java348 int utflen = 0; in writeUTF() local
355 utflen++; in writeUTF()
357 utflen += 3; in writeUTF()
359 utflen += 2; in writeUTF()
363 if (utflen > 65535) in writeUTF()
365 "encoded string too long: " + utflen + " bytes"); in writeUTF()
370 if(dos.bytearr == null || (dos.bytearr.length < (utflen+2))) in writeUTF()
371 dos.bytearr = new byte[(utflen*2) + 2]; in writeUTF()
374 bytearr = new byte[utflen+2]; in writeUTF()
377 bytearr[count++] = (byte) ((utflen >>> 8) & 0xFF); in writeUTF()
[all …]
DDataInputStream.java586 int utflen = in.readUnsignedShort(); in readUTF() local
591 if (dis.bytearr.length < utflen){ in readUTF()
592 dis.bytearr = new byte[utflen*2]; in readUTF()
593 dis.chararr = new char[utflen*2]; in readUTF()
598 bytearr = new byte[utflen]; in readUTF()
599 chararr = new char[utflen]; in readUTF()
606 in.readFully(bytearr, 0, utflen); in readUTF()
608 while (count < utflen) { in readUTF()
615 while (count < utflen) { in readUTF()
626 if (count > utflen) in readUTF()
[all …]
DObjectOutputStream.java1359 long utflen = bout.getUTFLength(str); in writeString() local
1360 if (utflen <= 0xFFFF) { in writeString()
1362 bout.writeUTF(str, utflen); in writeString()
1365 bout.writeLongUTF(str, utflen); in writeString()
2237 long utflen = 0; in getUTFLength() local
2244 utflen++; in getUTFLength()
2246 utflen += 3; in getUTFLength()
2248 utflen += 2; in getUTFLength()
2253 return utflen; in getUTFLength()
2262 void writeUTF(String s, long utflen) throws IOException { in writeUTF() argument
[all …]
DObjectInputStream.java3196 private String readUTFBody(long utflen) throws IOException { in readUTFBody() argument
3202 while (utflen > 0) { in readUTFBody()
3204 if (avail >= 3 || (long) avail == utflen) { in readUTFBody()
3205 utflen -= readUTFSpan(sbuf, utflen); in readUTFBody()
3209 utflen -= readUTFChar(sbuf, utflen); in readUTFBody()
3216 end = (int) Math.min(MAX_BLOCK_SIZE, utflen); in readUTFBody()
3231 private long readUTFSpan(StringBuilder sbuf, long utflen) in readUTFSpan() argument
3238 int stop = pos + ((utflen > avail) ? avail - 2 : (int) utflen); in readUTFSpan()
3286 if (outOfBounds || (pos - start) > utflen) { in readUTFSpan()
3292 pos = start + (int) utflen; in readUTFSpan()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectInputStream.java500 private java.lang.String readUTFBody(long utflen) throws java.io.IOException { in readUTFBody() argument
504 private long readUTFSpan(java.lang.StringBuilder sbuf, long utflen) in readUTFSpan() argument
509 private int readUTFChar(java.lang.StringBuilder sbuf, long utflen) in readUTFChar() argument
DObjectOutputStream.java440 void writeUTF(java.lang.String s, long utflen) throws java.io.IOException { in writeUTF() argument
448 void writeLongUTF(java.lang.String s, long utflen) throws java.io.IOException { in writeLongUTF() argument