pdf-toolbox-core-0.0.4.1: A collection of tools for processing PDF files.

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Core.IO.RIS

Description

Input stream with random access

Synopsis

Documentation

type IS = InputStream ByteString #

Sequential input stream

newtype RIS #

Random access Input Stream

Constructors

RIS (IORef RIS') 

data RIS' #

Internal state of RIS

Constructors

RIS' 

seek :: RIS -> Int64 -> IO () #

Seek the stream

size :: RIS -> IO Int64 #

Number of bytes in the stream

tell :: RIS -> IO Int64 #

Current position in bytes

inputStream :: RIS -> IO IS #

Get sequential input stream, that is valid until the next seek

fromHandle :: Handle -> IO RIS #

Create RIS from Handle with default chunk size

fromHandle' :: Handle -> Int -> IO RIS #

Create RIS from Handle with the specified chunk size