Lines Matching refs:offset
92 _inline sal_Int16 GetInt16( const sal_uInt8* ptr, sal_uInt32 offset, int bigendian) in GetInt16() argument
98 t = (ptr+offset)[0] << 8 | (ptr+offset)[1]; in GetInt16()
100 t = (ptr+offset)[1] << 8 | (ptr+offset)[0]; in GetInt16()
106 _inline sal_uInt16 GetUInt16( const sal_uInt8* ptr, sal_uInt32 offset, int bigendian) in GetUInt16() argument
112 t = (ptr+offset)[0] << 8 | (ptr+offset)[1]; in GetUInt16()
114 t = (ptr+offset)[1] << 8 | (ptr+offset)[0]; in GetUInt16()
120 _inline sal_Int32 GetInt32( const sal_uInt8* ptr, sal_uInt32 offset, int bigendian) in GetInt32() argument
126 t = (ptr+offset)[0] << 24 | (ptr+offset)[1] << 16 | in GetInt32()
127 (ptr+offset)[2] << 8 | (ptr+offset)[3]; in GetInt32()
129 t = (ptr+offset)[3] << 24 | (ptr+offset)[2] << 16 | in GetInt32()
130 (ptr+offset)[1] << 8 | (ptr+offset)[0]; in GetInt32()
136 _inline sal_uInt32 GetUInt32( const sal_uInt8* ptr, sal_uInt32 offset, int bigendian) in GetUInt32() argument
143 t = (ptr+offset)[0] << 24 | (ptr+offset)[1] << 16 | in GetUInt32()
144 (ptr+offset)[2] << 8 | (ptr+offset)[3]; in GetUInt32()
146 t = (ptr+offset)[3] << 24 | (ptr+offset)[2] << 16 | in GetUInt32()
147 (ptr+offset)[1] << 8 | (ptr+offset)[0]; in GetUInt32()
154 _inline void PutInt16(sal_Int16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian) in PutInt16() argument
159 ptr[offset] = (sal_uInt8)((val >> 8) & 0xFF); in PutInt16()
160 ptr[offset+1] = (sal_uInt8)(val & 0xFF); in PutInt16()
162 ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF); in PutInt16()
163 ptr[offset] = (sal_uInt8)(val & 0xFF); in PutInt16()
167 _inline void PutUInt16(sal_uInt16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian) in PutUInt16() argument
172 ptr[offset] = (sal_uInt8)((val >> 8) & 0xFF); in PutUInt16()
173 ptr[offset+1] = (sal_uInt8)(val & 0xFF); in PutUInt16()
175 ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF); in PutUInt16()
176 ptr[offset] = (sal_uInt8)(val & 0xFF); in PutUInt16()
180 _inline void PutUInt32(sal_uInt32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian) in PutUInt32() argument
185 ptr[offset] = (sal_uInt8)((val >> 24) & 0xFF); in PutUInt32()
186 ptr[offset+1] = (sal_uInt8)((val >> 16) & 0xFF); in PutUInt32()
187 ptr[offset+2] = (sal_uInt8)((val >> 8) & 0xFF); in PutUInt32()
188 ptr[offset+3] = (sal_uInt8)(val & 0xFF); in PutUInt32()
190 ptr[offset+3] = (sal_uInt8)((val >> 24) & 0xFF); in PutUInt32()
191 ptr[offset+2] = (sal_uInt8)((val >> 16) & 0xFF); in PutUInt32()
192 ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF); in PutUInt32()
193 ptr[offset] = (sal_uInt8)(val & 0xFF); in PutUInt32()
199 _inline void PutInt32(sal_Int32 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian) in PutInt32() argument
204 ptr[offset] = (sal_uInt8)((val >> 24) & 0xFF); in PutInt32()
205 ptr[offset+1] = (sal_uInt8)((val >> 16) & 0xFF); in PutInt32()
206 ptr[offset+2] = (sal_uInt8)((val >> 8) & 0xFF); in PutInt32()
207 ptr[offset+3] = (sal_uInt8)(val & 0xFF); in PutInt32()
209 ptr[offset+3] = (sal_uInt8)((val >> 24) & 0xFF); in PutInt32()
210 ptr[offset+2] = (sal_uInt8)((val >> 16) & 0xFF); in PutInt32()
211 ptr[offset+1] = (sal_uInt8)((val >> 8) & 0xFF); in PutInt32()
212 ptr[offset] = (sal_uInt8)(val & 0xFF); in PutInt32()
311 sal_uInt32 s, offset, checkSumAdjustment = 0; in StreamToMemory() local
345 s = offset = 12 + 16 * n; in StreamToMemory()
365 PutUInt32(offset, ttf + 12, 16 * i + 8, 1); in StreamToMemory()
369 head = ttf + offset; in StreamToMemory()
372 memcpy(ttf+offset, te[i].data, (te[i].length + 3) & (sal_uInt32) ~3 ); in StreamToMemory()
373 offset += (te[i].length + 3) & (sal_uInt32) ~3; in StreamToMemory()