Table of Contents

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

MessageBodyOwnedHandle

Length

public long Length { get; set; }

Property Value

long

Methods

Append(MemoryUse, Span<byte>)

public void Append(MemoryUse use, Span<byte> data)

Parameters

use MemoryUse
data Span<byte>

Append(Span<byte>)

public void Append(Span<byte> data)

Parameters

data Span<byte>

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 MessageBody

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Flatten()

public Bytes Flatten()

Returns

Bytes

GetAccumulate()

public bool GetAccumulate()

Returns

bool

GetChunk(long)

public Bytes? GetChunk(long offset)

Parameters

offset long

Returns

Bytes

GetGType()

public static Type GetGType()

Returns

Type

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

MessageBody

Ref()

public MessageBody Ref()

Returns

MessageBody

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