Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class IsStruct a where
- newtype InlineSize = InlineSize {}
- newtype Alignment = Alignment {
- unAlignment :: Word8
Documentation
newtype InlineSize Source #
The number of bytes occupied by a piece of data that's stored "inline"
"inline" here means "stored directly in a table or a vector, and not by reference". E.g.: numeric types, booleans, structs, offsets.
Instances
The memory alignment (in bytes) for a piece of data in a flatbuffer.
E.g., Int32
are always aligned to 4 bytes.
This number should always be a power of 2 in the range [1, 16].
Instances
Bounded Alignment Source # | |
Enum Alignment Source # | |
Defined in FlatBuffers.Internal.Types succ :: Alignment -> Alignment # pred :: Alignment -> Alignment # fromEnum :: Alignment -> Int # enumFrom :: Alignment -> [Alignment] # enumFromThen :: Alignment -> Alignment -> [Alignment] # enumFromTo :: Alignment -> Alignment -> [Alignment] # enumFromThenTo :: Alignment -> Alignment -> Alignment -> [Alignment] # | |
Num Alignment Source # | |
Defined in FlatBuffers.Internal.Types | |
Integral Alignment Source # | |
Defined in FlatBuffers.Internal.Types | |
Real Alignment Source # | |
Defined in FlatBuffers.Internal.Types toRational :: Alignment -> Rational # | |
Show Alignment Source # | |
Display Alignment Source # | |
Eq Alignment Source # | |
Ord Alignment Source # | |
Defined in FlatBuffers.Internal.Types |