Home
last modified time | relevance | path

Searched refs:_pos (Results 1 – 25 of 58) sorted by relevance

123

/external/lzma/CS/7zip/Compress/LZ/
DLzOutWindow.cs8 uint _pos; field in SevenZip.Compression.LZ.OutWindow
23 _pos = 0; in Create()
34 _pos = 0; in Init()
45 _streamPos = _pos = 0; in Train()
48 uint curSize = _windowSize - _pos; in Train()
51 int numReadBytes = stream.Read(_buffer, (int)_pos, (int)curSize); in Train()
55 _pos += (uint)numReadBytes; in Train()
57 if (_pos == _windowSize) in Train()
58 _streamPos = _pos = 0; in Train()
71 uint size = _pos - _streamPos; in Flush()
[all …]
DLzInWindow.cs19 public UInt32 _pos; // offset (from _buffer) of curent byte field in SevenZip.Compression.LZ.InWindow
26 UInt32 offset = (UInt32)(_bufferOffset) + _pos - _keepSizeBefore; in MoveBlock()
60 if (_streamPos >= _pos + _keepSizeAfter) in ReadBlock()
87 _pos = 0; in Init()
95 _pos++; in MovePos()
96 if (_pos > _posLimit) in MovePos()
98 UInt32 pointerToPostion = _bufferOffset + _pos; in MovePos()
105 public Byte GetIndexByte(Int32 index) { return _bufferBase[_bufferOffset + _pos + index]; } in GetIndexByte()
111 if ((_pos + index) + limit > _streamPos) in GetMatchLen()
112 limit = _streamPos - (UInt32)(_pos + index); in GetMatchLen()
[all …]
DLzBinTree.cs68 if (_pos == kMaxValForNormalize) in MovePos()
121 if (_pos + _matchMaxLen <= _streamPos) in GetMatches()
125 lenLimit = _streamPos - _pos; in GetMatches()
134 UInt32 matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0; in GetMatches()
135 UInt32 cur = _bufferOffset + _pos; in GetMatches()
155 _hash[hash2Value] = _pos; in GetMatches()
156 _hash[kHash3Offset + hash3Value] = _pos; in GetMatches()
161 distances[offset++] = _pos - curMatch2 - 1; in GetMatches()
169 distances[offset++] = _pos - curMatch3 - 1; in GetMatches()
179 _hash[kFixHashSize + hashValue] = _pos; in GetMatches()
[all …]
/external/lzma/Java/SevenZip/Compression/LZ/
DOutWindow.java10 int _pos; field in OutWindow
20 _pos = 0; in Create()
41 _pos = 0; in Init()
47 int size = _pos - _streamPos; in Flush()
51 if (_pos >= _windowSize) in Flush()
52 _pos = 0; in Flush()
53 _streamPos = _pos; in Flush()
58 int pos = _pos - distance - 1; in CopyBlock()
65 _buffer[_pos++] = _buffer[pos++]; in CopyBlock()
66 if (_pos >= _windowSize) in CopyBlock()
[all …]
DBinTree.java68 if (_pos == kMaxValForNormalize) in MovePos()
121 if (_pos + _matchMaxLen <= _streamPos) in GetMatches()
125 lenLimit = _streamPos - _pos; in GetMatches()
134 int matchMinPos = (_pos > _cyclicBufferSize) ? (_pos - _cyclicBufferSize) : 0; in GetMatches()
135 int cur = _bufferOffset + _pos; in GetMatches()
155 _hash[hash2Value] = _pos; in GetMatches()
156 _hash[kHash3Offset + hash3Value] = _pos; in GetMatches()
161 distances[offset++] = _pos - curMatch2 - 1; in GetMatches()
169 distances[offset++] = _pos - curMatch3 - 1; in GetMatches()
179 _hash[kFixHashSize + hashValue] = _pos; in GetMatches()
[all …]
DInWindow.java19 public int _pos; // offset (from _buffer) of curent byte field in InWindow
26 int offset = _bufferOffset + _pos - _keepSizeBefore; in MoveBlock()
60 if (_streamPos >= _pos + _keepSizeAfter) in ReadBlock()
87 _pos = 0; in Init()
95 _pos++; in MovePos()
96 if (_pos > _posLimit) in MovePos()
98 int pointerToPostion = _bufferOffset + _pos; in MovePos()
105 public byte GetIndexByte(int index) { return _bufferBase[_bufferOffset + _pos + index]; } in GetIndexByte()
111 if ((_pos + index) + limit > _streamPos) in GetMatchLen()
112 limit = _streamPos - (_pos + index); in GetMatchLen()
[all …]
/external/lzma/CPP/7zip/Common/
DStreamObjects.cpp17 if (_pos >= Buf.Size()) in Read()
19 size_t rem = Buf.Size() - (size_t)_pos; in Read()
22 memcpy(data, (const Byte *)Buf + (size_t)_pos, rem); in Read()
23 _pos += rem; in Read()
34 case STREAM_SEEK_CUR: offset += _pos; break; in Seek()
40 _pos = offset; in Seek()
52 if (_pos >= _size) in Read()
54 size_t rem = _size - (size_t)_pos; in Read()
57 memcpy(data, _data + (size_t)_pos, rem); in Read()
58 _pos += rem; in Read()
[all …]
DOutBuffer.cpp32 _pos = 0; in Init()
42 UInt64 res = _processedSize + _pos - _streamPos; in GetProcessedSize()
43 if (_streamPos > _pos) in GetProcessedSize()
52 UInt32 size = (_streamPos >= _pos) ? (_bufSize - _streamPos) : (_pos - _streamPos); in FlushPart()
76 if (_pos == _bufSize) in FlushPart()
79 _pos = 0; in FlushPart()
81 _limitPos = (_streamPos > _pos) ? _streamPos : _bufSize; in FlushPart()
93 while (_streamPos != _pos) in Flush()
DStreamObjects.h16 UInt64 _pos; variable
19 void Init() { _pos = 0; } in Init()
40 UInt64 _pos; variable
48 _pos = 0;
103 size_t _pos; variable
108 _pos = 0; in Init()
111 size_t GetPos() const { return _pos; } in GetPos()
142 UInt64 _pos; variable
DOutBuffer.h21 UInt32 _pos; variable
36 COutBuffer(): _buf(0), _pos(0), _stream(0), _buf2(0) {} in COutBuffer()
50 UInt32 pos = _pos; in WriteByte()
53 _pos = pos; in WriteByte()
/external/skqp/experimental/canvaskit/htmlcanvas/
Dlineargradient.js5 this._pos = []; property in LinearCanvasGradient
22 var idx = this._pos.indexOf(offset);
27 for (idx = 0; idx < this._pos.length; idx++) {
28 if (this._pos[idx] > offset) {
32 this._pos .splice(idx, 0, offset);
40 lcg._pos = this._pos.slice();
63 this._colors, this._pos, CanvasKit.TileMode.Clamp);
Dradialgradient.js8 this._pos = []; property in RadialCanvasGradient
25 var idx = this._pos.indexOf(offset);
30 for (idx = 0; idx < this._pos.length; idx++) {
31 if (this._pos[idx] > offset) {
35 this._pos .splice(idx, 0, offset);
43 rcg._pos = this._pos.slice();
73 [sx1, sy1], sr1, [sx2, sy2], sr2, this._colors, this._pos,
/external/skia/modules/canvaskit/htmlcanvas/
Dlineargradient.js5 this._pos = []; property in LinearCanvasGradient
22 var idx = this._pos.indexOf(offset);
27 for (idx = 0; idx < this._pos.length; idx++) {
28 if (this._pos[idx] > offset) {
32 this._pos .splice(idx, 0, offset);
40 lcg._pos = this._pos.slice();
63 this._colors, this._pos, CanvasKit.TileMode.Clamp);
Dradialgradient.js8 this._pos = []; property in RadialCanvasGradient
25 var idx = this._pos.indexOf(offset);
30 for (idx = 0; idx < this._pos.length; idx++) {
31 if (this._pos[idx] > offset) {
35 this._pos .splice(idx, 0, offset);
43 rcg._pos = this._pos.slice();
73 [sx1, sy1], sr1, [sx2, sy2], sr2, this._colors, this._pos,
/external/lzma/CPP/Common/
DDynamicBuffer.h10 size_t _pos; variable
29 if (_pos != 0) in Grow()
30 memcpy(newBuffer, _items, _pos * sizeof(T)); in Grow()
37 CDynamicBuffer(): _items(0), _size(0), _pos(0) {} in CDynamicBuffer()
44 size_t rem = _size - _pos; in GetCurPtrAndGrow()
47 T *res = _items + _pos; in GetCurPtrAndGrow()
48 _pos += addSize; in GetCurPtrAndGrow()
57 const size_t GetPos() const { return _pos; } in GetPos()
/external/icu/icu4c/source/i18n/
Dnfsubs.cpp78 MultiplierSubstitution(int32_t _pos, in MultiplierSubstitution() argument
83 : NFSubstitution(_pos, _ruleSet, description, status), divisor(rule->getDivisor()) in MultiplierSubstitution()
185 IntegralPartSubstitution(int32_t _pos, in IntegralPartSubstitution() argument
189 : NFSubstitution(_pos, _ruleSet, description, status) {} in IntegralPartSubstitution()
244 AbsoluteValueSubstitution(int32_t _pos, in AbsoluteValueSubstitution() argument
248 : NFSubstitution(_pos, _ruleSet, description, status) {} in AbsoluteValueSubstitution()
276 NumeratorSubstitution(int32_t _pos, in NumeratorSubstitution() argument
281 : NFSubstitution(_pos, _ruleSet, fixdesc(description), status), denominator(_denominator) in NumeratorSubstitution()
405 NFSubstitution::NFSubstitution(int32_t _pos, in NFSubstitution() argument
409 : pos(_pos), ruleSet(NULL), numberFormat(NULL) in NFSubstitution()
[all …]
/external/lzma/CPP/7zip/Archive/Common/
DMultiStream.cpp13 if (_pos >= _totalLength) in Read()
21 if (_pos < m.GlobalOffset) in Read()
23 else if (_pos >= m.GlobalOffset + m.Size) in Read()
36 UInt64 localPos = _pos - s.GlobalOffset; in Read()
45 _pos += size; in Read()
57 case STREAM_SEEK_CUR: offset += _pos; break; in Seek()
63 _pos = offset; in Seek()
/external/python/cpython3/Lib/
D_compression.py42 self._pos = 0 # Current offset in decompressed stream
108 self._size = self._pos
110 self._pos += len(data)
117 self._pos = 0
125 offset = self._pos + offset
136 if offset < self._pos:
139 offset -= self._pos
148 return self._pos
152 return self._pos
/external/lzma/CPP/7zip/Archive/7z/
D7zFolderInStream.cpp22 _pos = 0; in Init()
32 _pos = 0; in OpenStream()
71 Sizes.Add(_pos); in AddFileInfo()
91 _pos += cur; in Read()
101 _pos = 0; in Read()
131 *value = _pos; in GetSubStreamSize()
135 *value = (_pos > _size ? _pos : _size); in GetSubStreamSize()
D7zOut.h21 size_t _pos; variable
23 CWriteBufferLoc(): _size(0), _pos(0) {} in CWriteBufferLoc()
28 _pos = 0; in Init()
34 if (size > _size - _pos) in WriteBytes()
36 memcpy(_data + _pos, data, size); in WriteBytes()
37 _pos += size; in WriteBytes()
41 if (_size == _pos) in WriteByte()
43 _data[_pos++] = b; in WriteByte()
45 size_t GetPos() const { return _pos; } in GetPos()
D7zDecode.cpp140 UInt64 _pos; member in NArchive::N7z::CLockedSequentialInStreamMT
147 _pos = startPos; in Init()
159 if (_pos != _glob->Pos) in Read()
161 RINOK(_glob->Stream->Seek(_pos, STREAM_SEEK_SET, NULL)); in Read()
162 _glob->Pos = _pos; in Read()
167 _pos += realProcessedSize; in Read()
168 _glob->Pos = _pos; in Read()
184 UInt64 _pos; member in NArchive::N7z::CLockedSequentialInStreamST
191 _pos = startPos; in Init()
201 if (_pos != _glob->Pos) in Read()
[all …]
D7zIn.h308 size_t _pos; member
310 size_t GetRem() const { return _size - _pos; } in GetRem()
311 const Byte *GetPtr() const { return _buffer + _pos; } in GetPtr()
316 _pos = 0; in Init()
320 void SkipDataNoCheck(UInt64 size) { _pos += (size_t)size; } in SkipDataNoCheck()
324 void SkipRem() { _pos = _size; } in SkipRem()
367 _inByteBack->_pos += _inByteVector[_numInByteBufs]._pos; in DeleteByteStream()
/external/lzma/Java/SevenZip/
DLzmaBench.java144 int _pos; field in LzmaBench.MyOutputStream
154 _pos = 0; in reset()
159 if (_pos >= _size) in write()
161 _buffer[_pos++] = (byte)b; in write()
166 return _pos; in size()
174 int _pos; field in LzmaBench.MyInputStream
184 _pos = 0; in reset()
189 if (_pos >= _size) in read()
191 return _buffer[_pos++] & 0xFF; in read()
/external/icu/icu4c/source/common/
Dservls.cpp160 int32_t _pos; member in ServiceEnumeration
167 , _pos(0) in ServiceEnumeration()
176 , _pos(0) in ServiceEnumeration()
187 _pos = other._pos; in ServiceEnumeration()
230 if (upToDate(status) && (_pos < _ids.size())) { in snext()
231 return (const UnicodeString*)_ids[_pos++]; in snext()
242 _pos = 0; in reset()
/external/flatbuffers/php/
DByteBuffer.php30 private $_pos; variable in Google\\FlatBuffers\\ByteBuffer
66 return $this->_pos;
74 $this->_pos = $pos;
82 $this->_pos = 0;
98 return substr($this->_buffer, $this->_pos);
342 for ($i = $this->_pos, $j = 0; $j < strlen($buffer); $i++, $j++) {

123