Docs.rs
python-assembler-0.0.4
python-assembler 0.0.4
Docs.rs crate page
MPL-2.0
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
fqq
github:nyar-vm:publisher
Dependencies
byteorder ^1.5.0
normal
gaia-types ^0.0.4
normal
serde ^1.0.228
normal
url ^2.5.7
normal
Versions
100%
of the crate is documented
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module pyc
python_
assembler
0.0.4
Module pyc
Sections
pyc 模块
设计目标
Module Items
Modules
Structs
Functions
In python_
assembler::
formats
python_assembler
::
formats
Module
pyc
Copy item path
Source
Expand description
§
pyc 模块
本模块提供了对 Python 字节码文件(
.pyc
文件)的读取、解析和写入功能。 它包含了以下主要组件:
reader
: 负责从字节流中读取和解析
.pyc
文件的内容。
writer
: 负责将 PythonProgram 序列化为
.pyc
文件的字节流。
§
设计目标
高效性
:通过优化的数据结构和算法,确保读取和写入操作的高效性。
准确性
:严格遵循
.pyc
文件格式规范,确保生成和解析的文件符合标准。
易用性
:提供简洁明了的 API,使得用户可以轻松地进行
.pyc
文件的操作。
可扩展性
:模块化的设计使得功能可以根据需要进行扩展和定制。
Modules
§
marshal
Marshal 序列化模块
reader
Reader 模块
writer
写入器模块,负责将 PythonProgram 写入到 .pyc 文件
Structs
§
PycRead
Config
配置结构体,用于指定读取 .pyc 文件时的参数
PycWrite
Config
配置结构体,用于指定写入 .pyc 文件时的参数
Functions
§
pyc_
read_
path
从指定路径读取 .pyc 文件并解析为 PythonProgram