Exemple #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));
        }
Exemple #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);
 }
Exemple #3
0
 private BinarySerializer(FSP.BinarySerializer serializer)
     : base(serializer) 
 {
     _bs = serializer;
 }
Exemple #4
0
 private BinarySerializer(FSP.BinarySerializer serializer)
     : base(serializer)
 {
     _bs = serializer;
 }