Пример #1
0
 public MessagePackDeserializer(
     byte *bytes,
     int length,
     HGlobalCache <char> hGlobal,
     MessagePackForamtter foramtter) : this(bytes, length, hGlobal)
 {
     this.foramtter = foramtter;
 }
Пример #2
0
 public MessagePackSerializer(
     MessagePackFormatterOptions options,
     int maxDepth,
     HGlobalCache <byte> hGlobal,
     MessagePackForamtter foramtter,
     Stream stream) : this(options, maxDepth, hGlobal)
 {
     MessagePackForamtter = foramtter;
     Stream = stream;
 }
        public int depth;  // 当前结构深度。

        public MessagePackSerializer(
            MessagePackFormatterOptions options,
            int maxDepth,
            HGlobal hGlobal,
            MessagePackForamtter foramtter = null,
            Stream stream = null)
        {
            this.options   = options;
            this.maxDepth  = maxDepth;
            this.hGlobal   = hGlobal;
            this.foramtter = foramtter;
            this.stream    = stream;
        }