예제 #1
0
 void writeMin(int n, BinaryPackerWriter w)
 {
     w.WriteArray(makeArray <byte>(n, byte.MinValue));
     w.WriteArray(makeArray <Int16>(n, Int16.MinValue));
     w.WriteArray(makeArray <Int32>(n, Int32.MinValue));
     w.WriteArray(makeArray <Int64>(n, Int64.MinValue));
     w.WriteArray(makeArray <UInt16>(n, UInt16.MinValue));
     w.WriteArray(makeArray <UInt32>(n, UInt32.MinValue));
     w.WriteArray(makeArray <UInt64>(n, UInt64.MinValue));
     w.WriteArray(makeArray <Single>(n, Single.MinValue));
     w.WriteArray(makeArray <Double>(n, Double.MinValue));
     w.WriteArray(makeArray <Boolean>(n, false));
     w.WriteArray(makeArray <String>(n, ""));
 }
예제 #2
0
 void writeMax(int n, BinaryPackerWriter w)
 {
     w.WriteArray(makeArray <byte>(n, byte.MaxValue));
     w.WriteArray(makeArray <Int16>(n, Int16.MaxValue));
     w.WriteArray(makeArray <Int32>(n, Int32.MaxValue));
     w.WriteArray(makeArray <Int64>(n, Int64.MaxValue));
     w.WriteArray(makeArray <UInt16>(n, UInt16.MaxValue));
     w.WriteArray(makeArray <UInt32>(n, UInt32.MaxValue));
     w.WriteArray(makeArray <UInt64>(n, UInt64.MaxValue));
     w.WriteArray(makeArray <Single>(n, Single.MaxValue));
     w.WriteArray(makeArray <Double>(n, Double.MaxValue));
     w.WriteArray(makeArray <Boolean>(n, true));
     w.WriteArray(makeArray <String>(n, maxString));
 }