Пример #1
0
 public static AppMsg TooManyBytes(ByteSize requested, ByteSize available, string caller, string file, int?line)
 => AppMsg.Define($"The number of bytes, {requested} exceeds the maximum available, {available}", SeverityLevel.Error, caller, file, line);
Пример #2
0
 /// <summary>
 /// Defines a record field
 /// </summary>
 /// <param name="FieldName">The field name</param>
 /// <param name="Position">The ordinal position</param>
 /// <param name="Offset">The struct layout offset</param>
 /// <param name="FieldType">The assembly-qualified field type name</param>
 public static FieldSpec DefineField(string FieldName, int Position, ByteSize Offset, string FieldType)
 => new FieldSpec(FieldName, Position, Offset, FieldType);