isobmff-0.13.0.0: A parser and generator for the ISO-14496-12/14 base media file format

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.IsoBaseFileFormat.Util.Versioned

Description

A binary version 0/1 field with seperate content for each version.

Synopsis

Documentation

data Versioned v0 v1 (version :: Nat) where Source #

Two alternative representations based on a version index. Use this for box content that can be either 32 or 64 bit.

Constructors

V0 :: IsBoxContent v0 => !v0 -> Versioned v0 v1 0 
V1 :: IsBoxContent v1 => !v1 -> Versioned v0 v1 1 
Instances
(version ~ 0, IsBoxContent v0, Default v0) => Default (Versioned v0 v1 version) Source # 
Instance details

Defined in Data.ByteString.IsoBaseFileFormat.Util.Versioned

Methods

def :: Versioned v0 v1 version #

IsBoxContent (Versioned v0 v1 version) Source # 
Instance details

Defined in Data.ByteString.IsoBaseFileFormat.Util.Versioned

Methods

boxSize :: Versioned v0 v1 version -> BoxSize Source #

boxBuilder :: Versioned v0 v1 version -> Builder Source #