Lines Matching refs:buffer
39 appendEncodedByte(uint16_t* buffer, uint16_t* buffLimit, uint8_t value, uint8_t state[],UErrorCode*… in appendEncodedByte() argument
45 if(buffer < buffLimit){ in appendEncodedByte()
46 *buffer++ = c; in appendEncodedByte()
51 return buffer; in appendEncodedByte()
56 return buffer; in appendEncodedByte()
64 encodeRunByte(uint16_t* buffer,uint16_t* bufLimit, uint8_t value, int32_t length, uint8_t state[], … in encodeRunByte() argument
72 buffer = appendEncodedByte(buffer,bufLimit, ESCAPE_BYTE, state,status); in encodeRunByte()
74 buffer = appendEncodedByte(buffer,bufLimit, value, state, status); in encodeRunByte()
80 buffer = appendEncodedByte(buffer, bufLimit,ESCAPE_BYTE, state,status); in encodeRunByte()
82 buffer = appendEncodedByte(buffer,bufLimit, value, state, status); in encodeRunByte()
85 buffer = appendEncodedByte(buffer,bufLimit, ESCAPE_BYTE, state,status); in encodeRunByte()
86 buffer = appendEncodedByte(buffer,bufLimit, (char)length, state, status); in encodeRunByte()
87 …buffer = appendEncodedByte(buffer,bufLimit, value, state, status); /* Don't need to escape this va… in encodeRunByte()
89 return buffer; in encodeRunByte()
92 #define APPEND( buffer, bufLimit, value, num, status){ \ argument
93 if(buffer<bufLimit){ \
94 *buffer++=(value); \
106 encodeRunShort(uint16_t* buffer,uint16_t* bufLimit, uint16_t value, int32_t length,UErrorCode* stat… in encodeRunShort() argument
112 APPEND(buffer,bufLimit,ESCAPE, num, status); in encodeRunShort()
115 APPEND(buffer,bufLimit,value,num, status); in encodeRunShort()
121 APPEND(buffer,bufLimit,ESCAPE,num,status); in encodeRunShort()
124 APPEND(buffer,bufLimit,value,num,status); in encodeRunShort()
127 APPEND(buffer,bufLimit,ESCAPE,num,status); in encodeRunShort()
128 APPEND(buffer,bufLimit,(uint16_t) length, num,status); in encodeRunShort()
129 APPEND(buffer,bufLimit,(uint16_t)value, num, status); /* Don't need to escape this value */ in encodeRunShort()
131 return buffer; in encodeRunShort()
148 usArrayToRLEString(const uint16_t* src,int32_t srcLen,uint16_t* buffer, int32_t bufLen,UErrorCode* … in usArrayToRLEString() argument
149 uint16_t* bufLimit = buffer+bufLen; in usArrayToRLEString()
150 uint16_t* saveBuffer = buffer; in usArrayToRLEString()
151 if(buffer < bufLimit){ in usArrayToRLEString()
152 *buffer++ = (uint16_t)(srcLen>>16); in usArrayToRLEString()
153 if(buffer<bufLimit){ in usArrayToRLEString()
157 *buffer++ = (uint16_t) srcLen; in usArrayToRLEString()
164 buffer = encodeRunShort(buffer,bufLimit, (uint16_t)runValue, runLength,status); in usArrayToRLEString()
169 buffer= encodeRunShort(buffer,bufLimit,(uint16_t)runValue, runLength,status); in usArrayToRLEString()
176 return (int32_t)(buffer - saveBuffer); in usArrayToRLEString()
194 byteArrayToRLEString(const uint8_t* src,int32_t srcLen, uint16_t* buffer,int32_t bufLen, UErrorCode… in byteArrayToRLEString() argument
195 const uint16_t* saveBuf = buffer; in byteArrayToRLEString()
196 uint16_t* bufLimit = buffer+bufLen; in byteArrayToRLEString()
197 if(buffer < bufLimit){ in byteArrayToRLEString()
198 *buffer++ = ((uint16_t) (srcLen >> 16)); in byteArrayToRLEString()
200 if(buffer<bufLimit){ in byteArrayToRLEString()
205 *buffer++=((uint16_t) srcLen); in byteArrayToRLEString()
212 buffer = encodeRunByte(buffer, bufLimit,runValue, runLength, state,status); in byteArrayToRLEString()
217 buffer = encodeRunByte(buffer,bufLimit, runValue, runLength, state, status); in byteArrayToRLEString()
223 buffer = appendEncodedByte(buffer,bufLimit, 0, state ,status); in byteArrayToRLEString()
231 return (int32_t) (buffer - saveBuf); in byteArrayToRLEString()