ghc-7.0.4: The GHC API

StringBuffer

Contents

Synopsis

Documentation

data StringBuffer Source

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)