Class MemoryOutputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class MemoryOutputStream : OutputStream, IObject, INotifyPropertyChanged, IDisposable, PollableOutputStream, Seekable, IHandle, GTypeProvider
- Inheritance
-
MemoryOutputStream
- Implements
-
- Inherited Members
-
Constructors
MemoryOutputStream(bool, params ConstructArgument[])
protected MemoryOutputStream(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
bool
constructArguments
ConstructArgument[]
MemoryOutputStream(IntPtr, bool)
protected MemoryOutputStream(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
DataPropertyDefinition
public static readonly Property<IntPtr, MemoryOutputStream> DataPropertyDefinition
Field Value
- Property<IntPtr, MemoryOutputStream>
DataSizePropertyDefinition
public static readonly Property<ulong, MemoryOutputStream> DataSizePropertyDefinition
Field Value
- Property<ulong, MemoryOutputStream>
DestroyFunctionPropertyDefinition
public static readonly Property<IntPtr, MemoryOutputStream> DestroyFunctionPropertyDefinition
Field Value
- Property<IntPtr, MemoryOutputStream>
ReallocFunctionPropertyDefinition
public static readonly Property<IntPtr, MemoryOutputStream> ReallocFunctionPropertyDefinition
Field Value
- Property<IntPtr, MemoryOutputStream>
SizePropertyDefinition
public static readonly Property<ulong, MemoryOutputStream> SizePropertyDefinition
Field Value
- Property<ulong, MemoryOutputStream>
Properties
Data
public IntPtr Data { get; }
Property Value
- IntPtr
DataSize
public ulong DataSize { get; }
Property Value
- ulong
DestroyFunction
public IntPtr DestroyFunction { get; }
Property Value
- IntPtr
ReallocFunction
public IntPtr ReallocFunction { get; }
Property Value
- IntPtr
Size
public ulong Size { get; }
Property Value
- ulong
Methods
CanPoll()
[Version("2.28")]
public bool CanPoll()
Returns
- bool
CanSeek()
Returns
- bool
CanTruncate()
public bool CanTruncate()
Returns
- bool
CreateSource(Cancellable?)
[Version("2.28")]
public Source CreateSource(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
- Source
GetData()
Returns
- IntPtr
GetDataSize()
[Version("2.18")]
public nuint GetDataSize()
Returns
- nuint
GetGType()
public static Type GetGType()
Returns
- Type
GetSize()
Returns
- nuint
IsWritable()
[Version("2.28")]
public bool IsWritable()
Returns
- bool
New(IntPtr, nuint, ReallocFunc?)
public static MemoryOutputStream New(IntPtr data, nuint size, ReallocFunc? reallocFunction)
Parameters
data
IntPtr
size
nuint
reallocFunction
ReallocFunc
Returns
- MemoryOutputStream
NewResizable()
[Version("2.36")]
public static MemoryOutputStream NewResizable()
Returns
- MemoryOutputStream
Seek(long, SeekType, Cancellable?)
public bool Seek(long offset, SeekType type, Cancellable? cancellable)
Parameters
offset
long
type
SeekType
cancellable
Cancellable
Returns
- bool
StealAsBytes()
[Version("2.34")]
public Bytes StealAsBytes()
Returns
- Bytes
StealData()
[Version("2.26")]
public IntPtr StealData()
Returns
- IntPtr
Tell()
Returns
- long
Truncate(long, Cancellable?)
public bool Truncate(long offset, Cancellable? cancellable)
Parameters
offset
long
cancellable
Cancellable
Returns
- bool
WriteNonblocking(Span<byte>, Cancellable?)
public long WriteNonblocking(Span<byte> buffer, Cancellable? cancellable)
Parameters
buffer
Span<byte>
cancellable
Cancellable
Returns
- long
WritevNonblocking(OutputVector[], out nuint, Cancellable?)
[Version("2.60")]
public PollableReturn WritevNonblocking(OutputVector[] vectors, out nuint bytesWritten, Cancellable? cancellable)
Parameters
vectors
OutputVector[]
bytesWritten
nuint
cancellable
Cancellable
Returns
- PollableReturn