Safe Haskell | None |
---|---|
Language | Haskell2010 |
Size Fields
Synopsis
- data Sized (sf :: Extends (BitRecordField (t :: BitField (rt :: Type) Nat (size :: Nat)))) (r :: BitRecord) :: Extends BitRecord
- type Sized8 t = Sized FieldU8 t
- type Sized16 t = Sized FieldU16 t
- type Sized32 t = Sized2 FieldU32 t
- type Sized64 t = Sized FieldU64 t
- data SizedField (sf :: Extends (BitRecordField (t :: BitField (rt :: Type) Nat (size :: Nat)))) (r :: Extends (BitRecordField (u :: BitField (rt' :: Type) (st' :: k0) (len0 :: Nat)))) :: Extends BitRecord
- type SizedField8 t = SizedField FieldU8 t
- type SizedField16 t = SizedField FieldU16 t
- type SizedField32 t = Sized32 (Konst (RecordField t))
- type SizedField64 t = SizedField FieldU64 t
Documentation
data Sized (sf :: Extends (BitRecordField (t :: BitField (rt :: Type) Nat (size :: Nat)))) (r :: BitRecord) :: Extends BitRecord Source #
A record with a size member, and a nested record that can be counted
using SizeInBytes
.
data SizedField (sf :: Extends (BitRecordField (t :: BitField (rt :: Type) Nat (size :: Nat)))) (r :: Extends (BitRecordField (u :: BitField (rt' :: Type) (st' :: k0) (len0 :: Nat)))) :: Extends BitRecord Source #
A record with a size member, and a nested field that can be counted
using SizeInBytes
.
Instances
type From (SizedField sf r :: BitRecord -> Type) Source # | |
Defined in Data.Type.BitRecords.Sized |
type SizedField8 t = SizedField FieldU8 t Source #
A convenient alias for a SizedField
with an FieldU8
size field.
type SizedField16 t = SizedField FieldU16 t Source #
A convenient alias for a SizedField
with an FieldU16
size field.
type SizedField32 t = Sized32 (Konst (RecordField t)) Source #
A convenient alias for a SizedField
with an FieldU32
size field.
type SizedField64 t = SizedField FieldU64 t Source #
A convenient alias for a SizedField
with an FieldU64
size field.