Skip to content

Instantly share code, notes, and snippets.

View juliusfriedman's full-sized avatar

Julius R Friedman juliusfriedman

View GitHub Profile
```cs
/// <summary>
/// A packed data structure which stored various attributes and can be used to determine how similar or diferrent a something is to something else
/// It achieves this by containing 32 bytes (2 <see cref="decimal"/>'s) with overlapped parts which are bit packed.
/// All values are stored in <see cref="Common.Binary.IsLittleEndian"/> so are only reversed when reading or writing <see cref="Common.Binary.IsBigEndian"/>.
/// </summary>
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Explicit, Size = 32)]
public ref struct Chirality
{
#region Fields
// Discussions @
// https://github.com/dotnet/runtime/issues/39601
// https://discord.com/channels/734490970309001236/734490970309001239
//-----------------------------------------------------
namespace System.IO
{
public interface IDisposed : IDisposable { bool ShouldDispose { get; } bool IsDisposed { get; } }
public interface IStream
/// <summary>
/// Of 8 bytes.
/// A structure which represents an:
/// <see cref="System.Object"/>, <see cref="System.Array"/> or <see cref="System.String"/>.
/// </summary>
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Explicit, Size = 8)]
public struct Invariant
{
[System.Runtime.InteropServices.FieldOffset(0)]
public System.Array Array;
/// <summary>
///
/// </summary>
/// <typeparam name="T"></typeparam>
public class IndirectEnumerator<T> : System.Collections.Generic.IEnumerator<T>
{
public readonly System.Collections.Generic.IEnumerator<T> Enumerator;
T Current;