---
source: boltffi_bindgen/src/render/csharp/templates.rs
expression: template.render().unwrap()
---
// <auto-generated>
// This file was generated by BoltFFI. Do not edit.
// </auto-generated>
#nullable enable

using System;
using System.Runtime.InteropServices;

namespace Demo
{
    [StructLayout(LayoutKind.Sequential)]
    public readonly record struct Point(
        double X,
        double Y
    )
    {
        internal static Point Decode(WireReader reader) =>
            new Point(
                reader.ReadF64(),
                reader.ReadF64()
            );

        internal int WireEncodedSize() =>
            8 +
            8;

        internal void WireEncodeTo(WireWriter wire)
        {
            wire.WriteF64(this.X);
            wire.WriteF64(this.Y);
        }
    }
}
