zoukankan      html  css  js  c++  java
  • hessian原理解析三(序列化协议)

    1、序列化概念

      将数据结构或对象转换成二进制串的过程就是序列化,将序列化过程中所生成的二进制串转换成数据结构或者对象的过程就是反序列化。序列化的目的是为了保存对象状态或用于网络传输

    2、hessian 序列化协议 1.0 参考官方文档:http://hessian.caucho.com/doc/hessian-1.0-spec.xtp

    9 primitive types

    boolean 32-bit

    int 64-bit

    long 64-bit

    double 64-bit

    date UTF8-encoded

    string UTF8-encoded

    xml

    raw binary data

    remote objects

    2 combining constructs:

    list for lists and arrays

    map for objects and hash tables.

    2 special contructs:

    null for null values

    ref for shared and circular object references.

    各数据类型序列化结果:

  • 相关阅读:
    c# 不常用逻辑运算符
    c# 简单日志记录类 log

    最短路径
    A+B
    floyd 算法
    Kruskal 算法
    快排
    顺序表的逆排
    顺序表中多余元素的删除
  • 原文地址:https://www.cnblogs.com/wwg168/p/6364266.html
Copyright © 2011-2022 走看看