![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| None | __init__ (self, "Environment" environment, str key, str checksum) |
| None | reset (self) |
| None | load_bytecode (self, t.BinaryIO f) |
| None | write_bytecode (self, t.IO[bytes] f) |
| None | bytecode_from_string (self, bytes string) |
| bytes | bytecode_to_string (self) |
Public Attributes | |
| environment | |
| key | |
| checksum | |
| code | |
Buckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions. The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation.
| None jinja2.bccache.Bucket.bytecode_from_string | ( | self, | |
| bytes | string | ||
| ) |
Load bytecode from bytes.
| bytes jinja2.bccache.Bucket.bytecode_to_string | ( | self | ) |
Return the bytecode as bytes.
| None jinja2.bccache.Bucket.load_bytecode | ( | self, | |
| t.BinaryIO | f | ||
| ) |
Loads bytecode from a file or file like object.
| None jinja2.bccache.Bucket.reset | ( | self | ) |
Resets the bucket (unloads the bytecode).
| None jinja2.bccache.Bucket.write_bytecode | ( | self, | |
| t.IO[bytes] | f | ||
| ) |
Dump the bytecode into the file or file like object passed.