FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mip/python-stdlib/struct/struct.py at PyDevices · PyDevices/mip · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
PyDevices
/
mip
Public
forked from
micropython/micropython-lib
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
mip
/
python-stdlib
/
struct
/
struct.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (9 loc) · 272 Bytes
Breadcrumbs
mip
/
python-stdlib
/
struct
/
struct.py
Copy path
File metadata and controls
13 lines (9 loc) · 272 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
from
ustruct
import
*
class
Struct
:
def
__init__
(
self
,
format
):
self
.
format
=
format
self
.
size
=
calcsize
(
format
)
def
unpack
(
self
,
buf
):
return
unpack
(
self
.
format
,
buf
)
def
pack
(
self
,
*
vals
):
return
pack
(
self
.
format
,
*
vals
)
Back
|
FazBrowse Home
|
New Git URL