public static void Write(
     this PrimitiveBinaryTranslation <bool, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     bool item,
     RecordType header,
     byte byteLength)
 {
     try
     {
         using (HeaderExport.Header(writer, header, ObjectType.Subrecord))
         {
             writer.Write(item ? 1 : 0, byteLength);
         }
     }
     catch (Exception ex)
     {
         throw SubrecordException.Factory(ex, header);
     }
 }
 public static void WriteAsMarker(
     this PrimitiveBinaryTranslation <bool, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     bool item,
     RecordType header)
 {
     try
     {
         if (!item)
         {
             return;
         }
         using (HeaderExport.Header(writer, header, ObjectType.Subrecord))
         {
             // Presence of marker signifies true
         }
     }
     catch (Exception ex)
     {
         throw SubrecordException.Factory(ex, header);
     }
 }
 public static void Write(
     this PrimitiveBinaryTranslation <float, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     float?item,
     RecordType header,
     FloatIntegerType integerType,
     double multiplier)
 {
     try
     {
         if (item == null)
         {
             return;
         }
         using (HeaderExport.Subrecord(writer, header))
         {
             FloatBinaryTranslation <MutagenFrame, MutagenWriter> .Instance.Write(writer, item, integerType, multiplier);
         }
     }
     catch (Exception ex)
     {
         throw SubrecordException.Factory(ex, header);
     }
 }