ghc-7.10.1.20150612: The GHC API

Safe HaskellNone
LanguageHaskell2010

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) -> Integer Source

XXX assumes ASCII digits only (by using byteOff)