MCPcopy Index your code
hub / github.com/python/cpython / frombuf

Method frombuf

Lib/tarfile.py:1277–1283  ·  view source on GitHub ↗

Construct a TarInfo object from a 512 byte bytes object. To support the old v7 tar format AREGTYPE headers are transformed to DIRTYPE headers if their name ends in '/'.

(cls, buf, encoding, errors)

Source from the content-addressed store, hash-verified

1275
1276 @classmethod
1277 def frombuf(cls, buf, encoding, errors):
1278 """Construct a TarInfo object from a 512 byte bytes object.
1279
1280 To support the old v7 tar format AREGTYPE headers are
1281 transformed to DIRTYPE headers if their name ends in '/'.
1282 """
1283 return cls._frombuf(buf, encoding, errors)
1284
1285 @classmethod
1286 def _frombuf(cls, buf, encoding, errors, *, dircheck=True):

Callers 1

test_header_offsetMethod · 0.80

Calls 1

_frombufMethod · 0.80

Tested by 1

test_header_offsetMethod · 0.64