OpenAFP-1.4.3: IBM AFP document format parser and generator

Copyright(c) Audrey Tang 2004-2011
LicensePublicDomain
Maintaineraudreyt@audreyt.org
Stabilityexperimental
Portabilitynon-portable (GHC-only)
Safe HaskellNone
LanguageHaskell98

OpenAFP.Types.Buffer

Description

This module handles sized binary buffers.

Synopsis

Documentation

class (Show a, Typeable a) => Buf a where Source #

The Buf class represents buffers, with the leading bytes representing its length.

Minimal complete definition

mkBuf, packBuf

Methods

mkBuf :: BS -> a Source #

packBuf :: a -> BS Source #

newtype Buffer0 Source #

Buffer0, being a simple BS, is of unlimited length.

Constructors

Buf0 

Fields

newtype Buffer1 Source #

Buffer1 uses one byte as length, hence is at most 254 bytes long.

Constructors

Buf1 

Fields

newtype Buffer2 Source #

Buffer2 uses two bytes; it can store up to 65535 bytes.

Constructors

Buf2 

Fields