-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusts module imports and __all__ for byteclasses for easier access …
…to types.
- Loading branch information
Showing
48 changed files
with
384 additions
and
1,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,85 @@ | ||
"""Byteclasses Types Module.""" | ||
"""Byteclass Types Package.""" | ||
|
||
from .primitives import floats, integers | ||
# pylint: disable=R0801 | ||
from .collections import ByteArray, ByteclassCollection, String, make_fixed_collection, member, structure, union | ||
from .primitives.bitfield import BitField, BitField16, BitField32, BitField64, BitPos, bitpos2mask, mask2bitpos | ||
from .primitives.byte_enum import ByteEnum | ||
from .primitives.byteclass_primitive_protocol import ByteclassPrimitive | ||
from .primitives.characters import Char, SChar, UChar | ||
from .primitives.floats import Double, Float, Float16, Float32, Float64, Half | ||
from .primitives.generics import Bit, Byte, DWord, QWord, Word | ||
from .primitives.integers import ( | ||
Int, | ||
Int8, | ||
Int16, | ||
Int32, | ||
Int64, | ||
Long, | ||
LongLong, | ||
Ptr16, | ||
Ptr32, | ||
Ptr64, | ||
Short, | ||
UInt, | ||
UInt8, | ||
UInt16, | ||
UInt32, | ||
UInt64, | ||
ULong, | ||
ULongLong, | ||
UnderflowError, | ||
UShort, | ||
) | ||
|
||
__all__ = ["floats", "integers"] | ||
__all__ = [ | ||
"Bit", | ||
"BitField", | ||
"BitField16", | ||
"BitField32", | ||
"BitField64", | ||
"BitPos", | ||
"bitpos2mask", | ||
"Byte", | ||
"ByteArray", | ||
"ByteclassCollection", | ||
"ByteclassPrimitive", | ||
"ByteEnum", | ||
"Char", | ||
"Double", | ||
"DWord", | ||
"Float16", | ||
"Float32", | ||
"Float", | ||
"Float64", | ||
"Half", | ||
"Int", | ||
"Int8", | ||
"Int16", | ||
"Int32", | ||
"Int64", | ||
"Long", | ||
"LongLong", | ||
"make_fixed_collection", | ||
"mask2bitpos", | ||
"member", | ||
"Ptr16", | ||
"Ptr32", | ||
"Ptr64", | ||
"QWord", | ||
"SChar", | ||
"Short", | ||
"String", | ||
"structure", | ||
"UChar", | ||
"UInt", | ||
"UInt8", | ||
"UInt16", | ||
"UInt32", | ||
"UInt64", | ||
"ULong", | ||
"ULongLong", | ||
"UnderflowError", | ||
"union", | ||
"UShort", | ||
"Word", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,75 @@ | ||
"""Fixed length types for binary data.""" | ||
"""Primitive Byteclasses Package.""" | ||
|
||
from . import floats, integers | ||
# pylint: disable=R0801 | ||
from .bitfield import BitField, BitField16, BitField32, BitField64, BitPos | ||
from .byte_enum import ByteEnum | ||
from .byteclass_primitive_protocol import ByteclassPrimitive | ||
from .characters import Char, SChar, UChar | ||
from .floats import Double, Float, Float16, Float32, Float64, Half | ||
from .generics import Bit, Byte, DWord, QWord, Word | ||
from .integers import ( | ||
Int, | ||
Int8, | ||
Int16, | ||
Int32, | ||
Int64, | ||
Long, | ||
LongLong, | ||
Ptr16, | ||
Ptr32, | ||
Ptr64, | ||
Short, | ||
UInt, | ||
UInt8, | ||
UInt16, | ||
UInt32, | ||
UInt64, | ||
ULong, | ||
ULongLong, | ||
UnderflowError, | ||
UShort, | ||
) | ||
|
||
__all__ = ["floats", "generics", "integers"] | ||
__all__ = [ | ||
"Bit", | ||
"BitField", | ||
"BitField16", | ||
"BitField32", | ||
"BitField64", | ||
"BitPos", | ||
"Byte", | ||
"ByteclassPrimitive", | ||
"ByteEnum", | ||
"Char", | ||
"Double", | ||
"DWord", | ||
"Float16", | ||
"Float32", | ||
"Float", | ||
"Float64", | ||
"Half", | ||
"Int", | ||
"Int8", | ||
"Int16", | ||
"Int32", | ||
"Int64", | ||
"Long", | ||
"LongLong", | ||
"Ptr16", | ||
"Ptr32", | ||
"Ptr64", | ||
"QWord", | ||
"SChar", | ||
"Short", | ||
"UChar", | ||
"UInt", | ||
"UInt8", | ||
"UInt16", | ||
"UInt32", | ||
"UInt64", | ||
"ULong", | ||
"ULongLong", | ||
"UnderflowError", | ||
"UShort", | ||
"Word", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.