Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
jinja2.bccache.Bucket Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ bytecode_from_string()

None jinja2.bccache.Bucket.bytecode_from_string (   self,
bytes  string 
)
Load bytecode from bytes.

◆ bytecode_to_string()

bytes jinja2.bccache.Bucket.bytecode_to_string (   self)
Return the bytecode as bytes.

◆ load_bytecode()

None jinja2.bccache.Bucket.load_bytecode (   self,
t.BinaryIO  f 
)
Loads bytecode from a file or file like object.

◆ reset()

None jinja2.bccache.Bucket.reset (   self)
Resets the bucket (unloads the bytecode).

◆ write_bytecode()

None jinja2.bccache.Bucket.write_bytecode (   self,
t.IO[bytes]  f 
)
Dump the bytecode into the file or file like object passed.

The documentation for this class was generated from the following file: