cpython-3.4.0: Bindings for libpython
CPython.Types.Bytes
Synopsis
data Bytes Source #
Instances
Methods
concreteType :: Bytes -> Type
toObject :: Bytes -> SomeObject Source #
fromForeignPtr :: ForeignPtr Bytes -> Bytes
bytesType :: Type Source #
toBytes :: ByteString -> IO Bytes Source #
fromBytes :: Bytes -> IO ByteString Source #
fromObject :: Object self => self -> IO Bytes Source #
Create a new byte string from any object which implements the buffer protocol.
length :: Bytes -> IO Integer Source #
append :: Bytes -> Bytes -> IO Bytes Source #