mirror of
https://github.com/SteamAutoCracks/DepotDownloaderMod.git
synced 2026-02-08 11:01:18 +01:00
21 lines
387 B
Python
21 lines
387 B
Python
from .loader import Loader
|
|
from .dumper import Dumper
|
|
|
|
|
|
def load(buf):
|
|
"""Load and decode a bytes object."""
|
|
loader = Loader()
|
|
return loader.load(buf)
|
|
|
|
|
|
def load_all(buf):
|
|
"""Decode all gobs in a bytes object."""
|
|
loader = Loader()
|
|
return loader.load_all(buf)
|
|
|
|
|
|
def dump(value):
|
|
"""Encode a Python value."""
|
|
dumper = Dumper()
|
|
return dumper.dump(value)
|