File
source: bluebase/pf/file.py
- class PfFileHeader(page: PfPage, *, offset: int, limit: int)[source]
Bases:
PfPageView,LayoutMixinfile header를 관리하는 view 클래스입니다.
Layout
Offset
Size
Name
Format
0
4
page_count'<i'4
4
first_free_pid'<i'- size: ClassVar[int] = 8
The total size of the layout, automatically calculated from
fields.
- class PfFile(fid: PfFileId, cache: PfPageCache)[source]
Bases:
object- Variables:
fid (PfFileId)
cache (PfPageCache)
stream (BinaryIO)
- static get_header(page: PfPage) PfFileHeader[source]
- static fetch_header(file: PfFile) tuple[PfPage, PfFileHeader][source]
- classmethod new(fid: PfFileId, cache: PfPageCache) Self[source]
- classmethod open(fid: PfFileId, cache: PfPageCache) Self[source]
- property page_count: intread-write