ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

StringBuffer

Contents

Synopsis

Documentation

data StringBufferSource

A StringBuffer is an internal pointer to a sized chunk of bytes. The bytes are intended to be *immutable*. There are pure operations to read the contents of a StringBuffer.

A StringBuffer may have a finalizer, depending on how it was obtained.

Constructors

StringBuffer 

Fields

buf :: !(ForeignPtr Word8)
 
len :: !Int
 
cur :: !Int
 

Instances

Creation/destruction

Inspection

Moving and comparison

Conversion

Parsing integers

parseUnsignedInteger :: StringBuffer -> Int -> Integer -> (Char -> Int) -> IntegerSource

XXX assumes ASCII digits only (by using byteOff)