Class MessageBody
- Namespace
- Soup
- Assembly
- Soup-3.0.dll
public sealed class MessageBody : BoxedRecord, IEquatable<MessageBody>
- Inheritance
-
MessageBody
- Implements
- Inherited Members
Constructors
MessageBody()
public MessageBody()
MessageBody(MessageBodyOwnedHandle)
public MessageBody(MessageBodyOwnedHandle handle)
Parameters
handle
MessageBodyOwnedHandle
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
buffer
Bytes
Complete()
public void Complete()
Equals(MessageBody?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MessageBody? other)
Parameters
other
MessageBodyAn 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
obj
objectThe 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
offset
long
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
chunk
Bytes
New()
public static MessageBody New()
Returns
Ref()
public MessageBody Ref()
Returns
SetAccumulate(bool)
public void SetAccumulate(bool accumulate)
Parameters
accumulate
bool
Truncate()
public void Truncate()
Unref()
public void Unref()
WroteChunk(Bytes)
public void WroteChunk(Bytes chunk)
Parameters
chunk
Bytes