Christian Köllner cbf2144ef4 Initial commit
2019-06-12 21:56:55 +02:00

25 lines
635 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;
}
}
}