using System;
namespace Capnp
{
///
/// An implementations of this interface represents a struct which is being deserialized from a Cap'n Proto object.
///
public interface IStructDeserializer
{
///
/// Reads a slice of up to 64 bits from this struct's data section, starting from the specified bit offset.
/// The slice must be aligned within a 64 bit word boundary.
///
/// Start bit offset relative to the data section, little endian
/// numbers of bits to read
/// the data
/// non-aligned access
/// bitOffset exceeds the data section
/// this state does not represent a struct
ulong StructReadData(ulong bitOffset, int bitCount);
}
}