pdf-toolbox-core-0.0.1.1: A collection of tools for processing PDF files.
Pdf.Toolbox.Core.IO.RIS
Description
Input stream with random access
Synopsis
type IS = InputStream ByteStringSource
Sequential input stream
newtype RIS Source
Random access Input Stream
Constructors
data RIS' Source
Internal state of RIS
RIS
Fields
seek :: RIS -> Int64 -> IO ()Source
Seek the stream
size :: RIS -> IO Int64Source
Number of bytes in the stream
tell :: RIS -> IO Int64Source
Current position in bytes
inputStream :: RIS -> IO ISSource
Get sequential input stream, that is valid until the next seek
seek
fromHandle :: Handle -> IO RISSource
Create RIS from Handle with default chunk size
Handle
fromHandle' :: Handle -> Int -> IO RISSource
Create RIS from Handle with the specified chunk size