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 |
Foreign.Libcdio.Util
Description
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 # |
|
Enum Bcd # | |
Eq Bcd # | |
Integral Bcd # | |
Num Bcd # | |
Ord Bcd # | |
Read Bcd # | |
Real Bcd # | |
Defined in Foreign.Libcdio.Util Methods toRational :: Bcd -> Rational # | |
Show Bcd # | |
Ix Bcd # | |
PrintfArg Bcd # | |
Defined in Foreign.Libcdio.Util | |
Storable Bcd # | |
Defined in Foreign.Libcdio.Util |