Пример #1
0
 public static IEndianProvider <StringSerializer> FixedLength(int length) =>
 EndianProvider.New(New, SerializeCount.FixedCount(length));
 public static IEndianProvider <FixedConstantSerializer <T> > NewProvider <T>(T constantValue) =>
 EndianProvider.New(
     new FixedConstantSerializer <T>(constantValue, Endian.Big),
     new FixedConstantSerializer <T>(constantValue, Endian.Little));
Пример #3
0
 public static IEndianProvider <InferCountSerializer> InferCount <T>(IEndianProvider <T> provider)
     where T : IConstantSerializedLength =>
 EndianProvider.New(value => new InferCountSerializer(value), provider);