Copyright | (c) 2018-2021 Sam May |
---|---|
License | GPL-3.0-or-later |
Maintainer | ag@eitilt.life |
Stability | stable |
Portability | non-portable (requires libcdio) |
Safe Haskell | None |
Language | Haskell2010 |
Most functions defined by the C header either encapsulate math to perform on
an object or the system state, or edit String
s in some (barring allocations)
pure manner, including a few with general utility rather than being specific to
libcdio. However, most are also restricted to internal use, and not provided
as symbols exported by the library itself; those internal functions are still
present in the Haskell source as well, for anyone interested. As such, this
module and the functions it provides should rarely need to be used.
util.h
Defines
CDIO_FREE_IF_NOT_NULL
(removed; Haskell handles its own memory management)CLAMP
(removed; preprocessor logic isn't required in Haskell)IN
(removed; preprocessor logic isn't required in Haskell)MAX
(removed; preprocessor logic isn't required in Haskell)MAX
(removed; preprocessor logic isn't required in Haskell)
Symbols
Documentation
A bitwise encoding where the lower four bits encode a number modulo 10, and the upper encode the same divided by 10.
Instances
Bounded Bcd Source # |
|
Enum Bcd Source # | |
Eq Bcd Source # | |
Integral Bcd Source # | |
Num Bcd Source # | |
Ord Bcd Source # | |
Read Bcd Source # | |
Real Bcd Source # | |
Defined in Foreign.Libcdio.Util toRational :: Bcd -> Rational # | |
Show Bcd Source # | |
Ix Bcd Source # | |
PrintfArg Bcd Source # | |
Defined in Foreign.Libcdio.Util formatArg :: Bcd -> FieldFormatter # parseFormat :: Bcd -> ModifierParser # | |
Storable Bcd Source # | |
Defined in Foreign.Libcdio.Util |