public static BitWriter Write_BD(this BitWriter writer, double value) { if (value == 0.0) { writer.Write_BB(0b10); } else if (value == 1.0) { writer.Write_BB(0b01); } else { writer.Write_BB(0b00); writer.WriteDouble(value); } return(writer); }
public static BitWriter Write_RD(this BitWriter writer, double value) { writer.WriteDouble(value); return(writer); }