gmime.stream
Module for [Stream] class
Types 3
classStream : gobject.object.ObjectWrap
Abstract I/O stream class.
Methods
StreamGidBuilder builder() static nothrowGet builder for [gmime.stream.Stream] Returns: New builder objectptrdiff_t bufferGets(ubyte[] buf) nothrowReads in at most one less than max characters from stream and stores them into the buffer pointed to by buf. Reading stops after an EOS or newline ('\n'). If a newline is read, it is stored into th...bool eos() nothrowTests the end-of-stream indicator for stream. Returns: true on EOS or false otherwise.long length() nothrowGets the length of the stream. Returns: the length of the stream or %-1 if unknown.long seek(long offset, gmime.types.SeekWhence whence) nothrowRepositions the offset of the stream stream to the argument offset according to the directive whence as follows:gmime.stream.Stream substream(long start, long end) nothrowCreates a new substream of stream with bounds start and end.long tell() nothrowGets the current offset within the stream. Returns: the current position within the stream or %-1 on fail.long writeToStream(gmime.stream.Stream dest) nothrowAttempts to write the source stream to the destination stream.long writev(gmime.types.StreamIOVector[] vector) nothrowWrites at most count blocks described by vector to stream.Fluent builder implementation template for gmime.stream.Stream
Fluent builder for gmime.stream.Stream