MCPcopy
hub / github.com/aws/aws-cli / seek

Method seek

awscli/botocore/httpchecksum.py:217–223  ·  view source on GitHub ↗
(self, offset, whence=0)

Source from the content-addressed store, hash-verified

215 self._checksum = self._checksum_cls()
216
217 def seek(self, offset, whence=0):
218 if offset != 0 or whence != 0:
219 raise AwsChunkedWrapperError(
220 error_msg="Can only seek to start of stream"
221 )
222 self._reset()
223 self._raw.seek(0)
224
225 def read(self, size=None):
226 # Normalize "read all" size values to None

Callers 11

_gzip_compress_bodyFunction · 0.45
_gzip_compress_fileobjFunction · 0.45
payloadMethod · 0.45
determine_content_lengthFunction · 0.45
_calculate_md5_from_fileFunction · 0.45
_handle_fileobjMethod · 0.45
_handle_break_codeMethod · 0.45
reset_streamMethod · 0.45
add_glacier_checksumsFunction · 0.45

Calls 2

_resetMethod · 0.95