pdf-toolbox-core-0.1.1: A collection of tools for processing PDF files.
Safe HaskellNone
LanguageHaskell2010

Pdf.Core.IO.Buffer

Description

Buffer abstracts from file IO

Synopsis

Documentation

data Buffer Source #

Interface to file

Constructors

Buffer 

Fields

fromHandle :: Handle -> IO Buffer Source #

Make buffer from handle

Don't touch the handle while using buffer

fromBytes :: ByteString -> IO Buffer Source #

Buffer from strict ByteString

That is mostly for testing

dropExactly :: Int -> InputStream ByteString -> IO () Source #

Drop specified number of bytes from input stream