mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 06:41:50 +01:00
24 lines
634 B
C#
24 lines
634 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Capnp
|
|
{
|
|
/// <summary>
|
|
/// Represents a Cap'n Proto message. Actually a lightweight wrapper struct around a read-only list of memory segments.
|
|
/// </summary>
|
|
public struct WireFrame
|
|
{
|
|
/// <summary>
|
|
/// The message segments
|
|
/// </summary>
|
|
public readonly IReadOnlyList<Memory<ulong>> Segments;
|
|
|
|
/// <summary>
|
|
/// Constructs a message from a list of segments.
|
|
/// </summary>
|
|
public WireFrame(IReadOnlyList<Memory<ulong>> segments)
|
|
{
|
|
Segments = segments;
|
|
}
|
|
}
|
|
} |