pdf-toolbox-core-0.0.3.0: A collection of tools for processing PDF files.
Pdf.Toolbox.Core.IO.RIS
Description
Input stream with random access
Synopsis
type IS = InputStream ByteString Source
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 Int64 Source
Number of bytes in the stream
tell :: RIS -> IO Int64 Source
Current position in bytes
inputStream :: RIS -> IO IS Source
Get sequential input stream, that is valid until the next seek
seek
fromHandle :: Handle -> IO RIS Source
Create RIS from Handle with default chunk size
Handle
fromHandle' :: Handle -> Int -> IO RIS Source
Create RIS from Handle with the specified chunk size