Home
last modified time | relevance | path

Searched refs:tempBuf (Results 1 – 25 of 27) sorted by relevance

12

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexDataWriter.java52 private byte[] tempBuf = new byte[8]; field in DexDataWriter
169 tempBuf[index++] = (byte)value; in writeEncodedInt()
174 tempBuf[index++] = (byte)value; in writeEncodedInt()
178 tempBuf[index++] = (byte)value; in writeEncodedInt()
180 write(tempBuf, 0, index); in writeEncodedInt()
187 tempBuf[index++] = (byte)value; in writeEncodedLong()
192 tempBuf[index++] = (byte)value; in writeEncodedLong()
196 tempBuf[index++] = (byte)value; in writeEncodedLong()
198 write(tempBuf, 0, index); in writeEncodedLong()
204 tempBuf[index++] = (byte)value; in writeEncodedUint()
[all …]
/external/icu/icu4c/source/common/
Dustr_wcs.cpp73 char* tempBuf = stackBuffer; in _strToWCS() local
77 char* saveBuf = tempBuf; in _strToWCS()
102 …ucnv_fromUnicode(conv,&tempBuf,tempBufLimit,&pSrc,pSrcLimit,NULL,(UBool)(pSrc==pSrcLimit),pErrorCo… in _strToWCS()
103 count =(tempBuf - saveBuf); in _strToWCS()
107 tempBuf = saveBuf; in _strToWCS()
114 if(!u_growAnyBufferFromStatic(stackBuffer,(void**) &tempBuf, &tempBufCapacity, in _strToWCS()
119 saveBuf = tempBuf; in _strToWCS()
120 tempBufLimit = tempBuf + tempBufCapacity; in _strToWCS()
121 tempBuf = tempBuf + count; in _strToWCS()
134 tempBuf = saveBuf; in _strToWCS()
[all …]
Ducnvhz.cpp158 char tempBuf[2]; in UConverter_toUnicode_HZ_OFFSETS_LOGIC() local
165 tempBuf[0]=0; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
166 tempBuf[1]=0; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
269 tempBuf[0] = (char) (leadByte+0x80) ; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
270 tempBuf[1] = (char) (mySourceChar+0x80); in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
272 tempBuf, 2, args->converter->useFallback); in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
Ducnv_u8.cpp310 uint8_t tempBuf[4]; in ucnv_fromUnicode_UTF8() local
372 tempPtr = (((targetLimit - myTarget) >= 4) ? myTarget : tempBuf); in ucnv_fromUnicode_UTF8()
392 for (; tempPtr <= (tempBuf + indexToWrite); tempPtr++) { in ucnv_fromUnicode_UTF8()
427 uint8_t tempBuf[4]; in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC() local
499 tempPtr = (((targetLimit - myTarget) >= 4) ? myTarget : tempBuf); in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
526 for (; tempPtr <= (tempBuf + indexToWrite); tempPtr++) { in ucnv_fromUnicode_UTF8_OFFSETS_LOGIC()
/external/lzma/C/
D7zDec.c376 Byte *tempBuf[]) in SzFolder_Decode2() argument
410 outBufCur = tempBuf[1 - ci] = temp; in SzFolder_Decode2()
463 tempBuf[2] = (Byte *)ISzAlloc_Alloc(allocMain, tempSizes[2]); in SzFolder_Decode2()
464 if (!tempBuf[2] && tempSizes[2] != 0) in SzFolder_Decode2()
468 RINOK(SzDecodeCopy(s3Size, inStream, tempBuf[2])); in SzFolder_Decode2()
479 p.bufs[1] = tempBuf[0]; p.lims[1] = tempBuf[0] + tempSizes[0]; in SzFolder_Decode2()
480 p.bufs[2] = tempBuf[1]; p.lims[2] = tempBuf[1] + tempSizes[1]; in SzFolder_Decode2()
481 p.bufs[3] = tempBuf[2]; p.lims[3] = tempBuf[2] + tempSizes[2]; in SzFolder_Decode2()
573 Byte *tempBuf[3] = { 0, 0, 0}; in SzAr_DecodeFolder() local
579 outBuffer, (SizeT)outSize, allocMain, tempBuf); in SzAr_DecodeFolder()
[all …]
D7zArcIn.c996 CBuf *tempBuf = tempBufs + fo; in SzReadAndDecodePackedStreams() local
1000 if (!Buf_Create(tempBuf, (size_t)unpackSize, allocTemp)) in SzReadAndDecodePackedStreams()
1006 const CBuf *tempBuf = tempBufs + fo; in SzReadAndDecodePackedStreams() local
1008 … RINOK(SzAr_DecodeFolder(p, fo, inStream, dataStartPos, tempBuf->data, tempBuf->size, allocTemp)); in SzReadAndDecodePackedStreams()
1574 CBuf tempBuf; in SzArEx_Open2() local
1575 Buf_Init(&tempBuf); in SzArEx_Open2()
1578 …res = SzReadAndDecodePackedStreams(inStream, &sd, &tempBuf, 1, p->startPosAfterHeader, &tempAr, al… in SzArEx_Open2()
1583 Buf_Free(&tempBuf, allocTemp); in SzArEx_Open2()
1588 buf.data = tempBuf.data; in SzArEx_Open2()
1589 buf.size = tempBuf.size; in SzArEx_Open2()
[all …]
DLzmaDec.c886 p->tempBuf[p->tempBufSize++] = *src++; in LzmaDec_DecodeToDic()
887 if (p->tempBufSize != 0 && p->tempBuf[0] != 0) in LzmaDec_DecodeToDic()
895 ((UInt32)p->tempBuf[1] << 24) in LzmaDec_DecodeToDic()
896 | ((UInt32)p->tempBuf[2] << 16) in LzmaDec_DecodeToDic()
897 | ((UInt32)p->tempBuf[3] << 8) in LzmaDec_DecodeToDic()
898 | ((UInt32)p->tempBuf[4]); in LzmaDec_DecodeToDic()
951 memcpy(p->tempBuf, src, inSize); in LzmaDec_DecodeToDic()
978 p->tempBuf[rem++] = src[lookAhead++]; in LzmaDec_DecodeToDic()
982 int dummyRes = LzmaDec_TryDummy(p, p->tempBuf, (SizeT)rem); in LzmaDec_DecodeToDic()
995 p->buf = p->tempBuf; in LzmaDec_DecodeToDic()
[all …]
/external/xz-java/src/org/tukaani/xz/
DDeltaInputStream.java39 private final byte[] tempBuf = new byte[1]; field in DeltaInputStream
70 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DDeltaOutputStream.java25 private final byte[] tempBuf = new byte[1]; field in DeltaOutputStream
37 tempBuf[0] = (byte)b; in write()
38 write(tempBuf, 0, 1); in write()
DSimpleInputStream.java30 private final byte[] tempBuf = new byte[1]; field in SimpleInputStream
51 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DUncompressedLZMA2OutputStream.java28 private final byte[] tempBuf = new byte[1]; field in UncompressedLZMA2OutputStream
52 tempBuf[0] = (byte)b; in write()
53 write(tempBuf, 0, 1); in write()
DSimpleOutputStream.java28 private final byte[] tempBuf = new byte[1]; field in SimpleOutputStream
44 tempBuf[0] = (byte)b; in write()
45 write(tempBuf, 0, 1); in write()
DBlockOutputStream.java28 private final byte[] tempBuf = new byte[1]; field in BlockOutputStream
89 tempBuf[0] = (byte)b; in write()
90 write(tempBuf, 0, 1); in write()
DXZInputStream.java73 private final byte[] tempBuf = new byte[1]; field in XZInputStream
337 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DLZMAOutputStream.java41 private final byte[] tempBuf = new byte[1]; field in LZMAOutputStream
232 tempBuf[0] = (byte)b; in write()
233 write(tempBuf, 0, 1); in write()
DSingleXZInputStream.java54 private final byte[] tempBuf = new byte[1]; field in SingleXZInputStream
361 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DLZMA2InputStream.java62 private final byte[] tempBuf = new byte[1]; field in LZMA2InputStream
199 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DLZMA2OutputStream.java40 private final byte[] tempBuf = new byte[1]; field in LZMA2OutputStream
87 tempBuf[0] = (byte)b; in write()
88 write(tempBuf, 0, 1); in write()
DBlockInputStream.java34 private final byte[] tempBuf = new byte[1]; field in BlockInputStream
204 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DXZOutputStream.java75 private final byte[] tempBuf = new byte[1]; field in XZOutputStream
357 tempBuf[0] = (byte)b; in write()
358 write(tempBuf, 0, 1); in write()
DLZMAInputStream.java57 private final byte[] tempBuf = new byte[1]; field in LZMAInputStream
628 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
DSeekableXZInputStream.java187 private final byte[] tempBuf = new byte[1]; field in SeekableXZInputStream
763 return read(tempBuf, 0, 1) == -1 ? -1 : (tempBuf[0] & 0xFF); in read()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetHZ.java70 byte[] tempBuf = new byte[2]; in decodeLoop()
167 tempBuf[0] = (byte)(leadByte + 0x80); in decodeLoop()
168 tempBuf[1] = (byte)(mySourceChar + 0x80); in decodeLoop()
169 … targetUniChar = gbDecoder.simpleGetNextUChar(ByteBuffer.wrap(tempBuf), super.isFallbackUsed()); in decodeLoop()
DCharsetISO2022.java850 byte []tempBuf = new byte[2]; in decodeLoop()
1026 … _2022ToSJIS((char)mySourceChar, (char)trailByte, tempBuf); in decodeLoop() local
1034tempBuf[0] = (byte)(UConverterConstants.UNSIGNED_BYTE_MASK & (tmpSourceChar >> 8)); in decodeLoop()
1035tempBuf[1] = (byte)(UConverterConstants.UNSIGNED_BYTE_MASK & tmpSourceChar); in decodeLoop()
1037 …ar = MBCSSimpleGetNextUChar(myConverterData.myConverterArray[cs], ByteBuffer.wrap(tempBuf), false); in decodeLoop()
1111 byte[] tempBuf = new byte[3]; in decodeLoop()
1231 tempBuf[0] = (byte)(0x80 + (tempState - CNS_11643_0)); in decodeLoop()
1232 tempBuf[1] = (byte)mySourceChar; in decodeLoop()
1233 tempBuf[2] = (byte)trailByte; in decodeLoop()
1237 tempBuf[0] = (byte)mySourceChar; in decodeLoop()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcnmdptst.c129 char tempBuf[256]; in TestQuotes() local
147 log_verbose("Pattern \"%s\" \n", u_austrcpy(tempBuf, pat) ); in TestQuotes()
148 log_verbose("Format 123 -> %s\n", u_austrcpy(tempBuf, str) ); in TestQuotes()
175 log_verbose("Pattern \"%s\" \n", u_austrcpy(tempBuf, pat) ); in TestQuotes()
176 log_verbose("Format 123 -> %s\n", u_austrcpy(tempBuf, str) ); in TestQuotes()
349 char tempBuf[256]; in TestCurrencySign() local
375 log_verbose("Pattern \" %s \" \n", u_austrcpy(tempBuf, pat)); in TestCurrencySign()
376 log_verbose("Format 1234.56 -> %s\n", u_austrcpy(tempBuf, str) ); in TestCurrencySign()

12