Beispiel #1
0
        /// <summary>
        ///     Creates a new BinaryPickler instance.
        /// </summary>
        /// <param name="forceLittleEndian">force little-endian encoding in primitive arrays but is slower; defaults to false.</param>
        public static BinarySerializer Create(bool forceLittleEndian = false)
        {
            var bs = new FSP.BinarySerializer();

            bs.ForceLittleEndian = forceLittleEndian;
            return(new BinarySerializer(bs));
        }
Beispiel #2
0
 /// <summary>
 ///     Creates a new BinaryPickler instance.
 /// </summary>
 /// <param name="forceLittleEndian">force little-endian encoding in primitive arrays but is slower; defaults to false.</param>
 public static BinarySerializer Create(bool forceLittleEndian = false)
 {
     var bs = new FSP.BinarySerializer();
     bs.ForceLittleEndian = forceLittleEndian;
     return new BinarySerializer(bs);
 }
Beispiel #3
0
 private BinarySerializer(FSP.BinarySerializer serializer)
     : base(serializer) 
 {
     _bs = serializer;
 }
Beispiel #4
0
 private BinarySerializer(FSP.BinarySerializer serializer)
     : base(serializer)
 {
     _bs = serializer;
 }