Class MessageBody
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public sealed class MessageBody : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<MessageBody>, IDisposable
- Inheritance
-
MessageBody
- Implements
- Inherited Members
Constructors
MessageBody()
public MessageBody()
MessageBody(MessageBodyOwnedHandle)
public MessageBody(MessageBodyOwnedHandle handle)
Parameters
handleMessageBodyOwnedHandle
Properties
Handle
public MessageBodyOwnedHandle Handle { get; }
Property Value
Length
public long Length { get; set; }
Property Value
Methods
Append(MemoryUse, Span<byte>)
public void Append(MemoryUse use, Span<byte> data)
Parameters
Append(Span<byte>)
public void Append(Span<byte> data)
Parameters
AppendBytes(Bytes)
public void AppendBytes(Bytes buffer)
Parameters
bufferBytes
Complete()
public void Complete()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(MessageBody?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MessageBody? other)
Parameters
otherMessageBodyAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Flatten()
public Bytes Flatten()
Returns
GetAccumulate()
public bool GetAccumulate()
Returns
GetChunk(long)
public Bytes? GetChunk(long offset)
Parameters
offsetlong
Returns
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GotChunk(Bytes)
public void GotChunk(Bytes chunk)
Parameters
chunkBytes
New()
public static MessageBody New()
Returns
Ref()
public MessageBody Ref()
Returns
SetAccumulate(bool)
public void SetAccumulate(bool accumulate)
Parameters
accumulatebool
Truncate()
public void Truncate()
Unref()
public void Unref()
WroteChunk(Bytes)
public void WroteChunk(Bytes chunk)
Parameters
chunkBytes