Lines Matching refs:pos
78 /* Converts 'nrBytes' bytes starting at position '*pos' in byte stream 'stream' into unsigned number 'num'.
79 '*pos' is modified to the position right after the number */
80 static void FixedBytesToUnsignedNum (picoos_uint8 * stream, picoos_uint8 nrBytes, picoos_uint32 * pos, picoos_uint32 * num)
86 (*num) = ((*num) << 8) + (picoos_uint32)stream[*pos];
87 (*pos)++;
92 /* Converts 'nrBytes' bytes starting at position '*pos' in byte stream 'stream' into signed number 'num'.
93 '*pos' is modified to the position right after the number */
94 static void FixedBytesToSignedNum (picoos_uint8 * stream, picoos_uint8 nrBytes, picoos_uint32 * pos, picoos_int32 * num)
101 val = (val << 8) + (picoos_uint32)stream[*pos];
102 (*pos)++;
114 /* Converts varying-sized sequence of bytes starting at position '*pos' in byte stream 'stream'
115 into (signed) number 'num'. '*pos' is modified to the position right after the number. */
116 static void BytesToNum (picoos_uint8 * stream, picoos_uint32 * pos, picoos_int32 * num)
122 b = (picoos_uint32)stream[*pos];
123 (*pos)++;
126 b = (picoos_uint32)stream[*pos];
127 (*pos)++;
275 picoos_uint32 pos;
286 pos = fst->alphaHashTabPos + (h * 4);
287 FixedBytesToSignedNum(fst->fstStream,4,& pos,& offs);
290 pos = inSymCellPos;
291 BytesToNum(fst->fstStream,& pos,& inSymX);
292 BytesToNum(fst->fstStream,& pos,& nextSameHashInSymOffs);
295 pos = inSymCellPos;
296 BytesToNum(fst->fstStream,& pos,& inSymX);
297 BytesToNum(fst->fstStream,& pos,& nextSameHashInSymOffs);
301 (*searchState) = pos;
313 picoos_uint32 pos;
322 pos = (*searchState);
323 BytesToNum(fst->fstStream,& pos,& val);
326 BytesToNum(fst->fstStream,& pos,& val);
329 (*searchState) = pos;
346 picoos_uint32 pos;
355 pos = fst->transTabPos + (index * fst->transTabEntrySize);
356 FixedBytesToUnsignedNum(fst->fstStream,fst->transTabEntrySize,& pos,& endStateX);
368 picoos_uint32 pos;
374 pos = fst->inEpsStateTabPos + (startState - 1) * 4;
375 FixedBytesToSignedNum(fst->fstStream,4,& pos,& offs);
390 picoos_uint32 pos;
399 pos = (*searchState);
400 BytesToNum(fst->fstStream,& pos,& val);
403 BytesToNum(fst->fstStream,& pos,& val);
406 (*searchState) = pos;
421 picoos_uint32 pos;
426 pos = fst->accStateTabPos + (state - 1);
427 FixedBytesToUnsignedNum(fst->fstStream,1,& pos,& val);