public static ulong set(this ulong data, Section section, ulong value) { var offsetMask = section.Mask << section.Offset; return((data & ~offsetMask) | (value << section.Offset & offsetMask)); }
public static ulong get(this ulong data, Section section) { return((data & section.Mask << section.Offset) >> section.Offset); }