hogg-0.2.0: Library and tools to manipulate the Ogg container formatContentsIndex
Codec.Container.Ogg.ContentType
Synopsis
data ContentType = ContentType {
label :: String
mime :: [String]
identifyP :: (ByteString -> Bool)
headers :: Int
preroll :: Int
granulerateF :: (Maybe (ByteString -> Granulerate))
granuleshiftF :: (Maybe (ByteString -> Int))
metadata :: (ByteString -> MessageHeaders)
}
identify :: ByteString -> Maybe ContentType
granulerate :: ContentType -> ByteString -> Maybe Granulerate
granuleshift :: ContentType -> ByteString -> Maybe Int
parseType :: String -> Maybe ContentType
class ContentTyped a where
contentTypeIs :: ContentType -> a -> Bool
contentTypeOf :: a -> Maybe ContentType
contentTypeIs :: ContentTyped a => ContentType -> a -> Bool
contentTypeOf :: ContentTyped a => a -> Maybe ContentType
skeleton :: ContentType
Documentation
data ContentType
Data: ContentType
Constructors
ContentType
label :: String
mime :: [String]
identifyP :: (ByteString -> Bool)
headers :: Int
preroll :: Int
granulerateF :: (Maybe (ByteString -> Granulerate))
granuleshiftF :: (Maybe (ByteString -> Int))
metadata :: (ByteString -> MessageHeaders)
show/hide Instances
identify :: ByteString -> Maybe ContentType
granulerate :: ContentType -> ByteString -> Maybe Granulerate
granuleshift :: ContentType -> ByteString -> Maybe Int
parseType :: String -> Maybe ContentType
class ContentTyped a where
Typeclass: ContentTyped
Methods
contentTypeIs :: ContentType -> a -> Bool
contentTypeOf :: a -> Maybe ContentType
show/hide Instances
contentTypeIs :: ContentTyped a => ContentType -> a -> Bool
contentTypeOf :: ContentTyped a => a -> Maybe ContentType
skeleton :: ContentType
Produced by Haddock version 0.8