Class MemoryInputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class MemoryInputStream : InputStream, IObject, INotifyPropertyChanged, IDisposable, PollableInputStream, Seekable, IHandle, GTypeProvider
- Inheritance
-
MemoryInputStream
- Implements
- Inherited Members
Constructors
MemoryInputStream(bool, params ConstructArgument[])
protected MemoryInputStream(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
MemoryInputStream(IntPtr, bool)
protected MemoryInputStream(IntPtr ptr, bool ownedRef)
Parameters
Methods
AddBytes(Bytes)
[Version("2.34")]
public void AddBytes(Bytes bytes)
Parameters
bytes
Bytes
CanPoll()
[Version("2.28")]
public bool CanPoll()
Returns
CanSeek()
public bool CanSeek()
Returns
CanTruncate()
public bool CanTruncate()
Returns
CreateSource(Cancellable?)
[Version("2.28")]
public Source CreateSource(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
GetGType()
public static Type GetGType()
Returns
IsReadable()
[Version("2.28")]
public bool IsReadable()
Returns
New()
public static MemoryInputStream New()
Returns
NewFromBytes(Bytes)
[Version("2.34")]
public static MemoryInputStream NewFromBytes(Bytes bytes)
Parameters
bytes
Bytes
Returns
ReadNonblocking(Span<byte>, Cancellable?)
public long ReadNonblocking(Span<byte> buffer, Cancellable? cancellable)
Parameters
buffer
Span<byte>cancellable
Cancellable
Returns
Seek(long, SeekType, Cancellable?)
public bool Seek(long offset, SeekType type, Cancellable? cancellable)
Parameters
offset
longtype
SeekTypecancellable
Cancellable
Returns
Tell()
public long Tell()
Returns
Truncate(long, Cancellable?)
public bool Truncate(long offset, Cancellable? cancellable)
Parameters
offset
longcancellable
Cancellable