Fantasy
搜索结果

    显示/隐藏目录

    BsonPackHelper 类

    BSON帮助方法

    继承
    object
    BsonPackHelper
    实现
    ISerialize
    继承成员
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Serialize
    程序集: Fantasy.Net.dll
    语法
    public class BsonPackHelper : ISerialize

    构造函数

    | 编辑本文 查看源代码

    BsonPackHelper()

    构造函数

    声明
    public BsonPackHelper()

    属性

    | 编辑本文 查看源代码

    SerializeName

    序列化器的名字

    声明
    public string SerializeName { get; }
    属性值
    类型 描述
    string

    方法

    | 编辑本文 查看源代码

    Clone<T>(T)

    克隆

    声明
    public T Clone<T>(T t)
    参数
    类型 名称 描述
    T t
    返回
    类型 描述
    T
    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Deserialize(Type, MemoryStreamBuffer)

    反序列化

    声明
    public object Deserialize(Type type, MemoryStreamBuffer buffer)
    参数
    类型 名称 描述
    Type type
    MemoryStreamBuffer buffer
    返回
    类型 描述
    object
    | 编辑本文 查看源代码

    Deserialize(Type, byte[])

    反序列化

    声明
    public object Deserialize(Type type, byte[] bytes)
    参数
    类型 名称 描述
    Type type
    byte[] bytes
    返回
    类型 描述
    object
    | 编辑本文 查看源代码

    Deserialize(Type, byte[], int, int)

    反序列化

    声明
    public object Deserialize(Type type, byte[] bytes, int index, int count)
    参数
    类型 名称 描述
    Type type
    byte[] bytes
    int index
    int count
    返回
    类型 描述
    object
    | 编辑本文 查看源代码

    Deserialize<T>(MemoryStreamBuffer)

    反序列化

    声明
    public T Deserialize<T>(MemoryStreamBuffer buffer)
    参数
    类型 名称 描述
    MemoryStreamBuffer buffer
    返回
    类型 描述
    T
    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Deserialize<T>(byte[])

    反序列化

    声明
    public T Deserialize<T>(byte[] bytes)
    参数
    类型 名称 描述
    byte[] bytes
    返回
    类型 描述
    T
    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Deserialize<T>(byte[], int, int)

    反序列化

    声明
    public T Deserialize<T>(byte[] bytes, int index, int count)
    参数
    类型 名称 描述
    byte[] bytes
    int index
    int count
    返回
    类型 描述
    T
    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Serialize(object)

    序列化

    声明
    public static byte[] Serialize(object @object)
    参数
    类型 名称 描述
    object object
    返回
    类型 描述
    byte[]
    | 编辑本文 查看源代码

    Serialize(object, IBufferWriter<byte>)

    声明
    public void Serialize(object @object, IBufferWriter<byte> buffer)
    参数
    类型 名称 描述
    object object
    IBufferWriter<byte> buffer
    | 编辑本文 查看源代码

    Serialize(Type, object, IBufferWriter<byte>)

    序列化

    声明
    public void Serialize(Type type, object @object, IBufferWriter<byte> buffer)
    参数
    类型 名称 描述
    Type type
    object object
    IBufferWriter<byte> buffer
    | 编辑本文 查看源代码

    SerializeAndReturnLength(Type, object, MemoryStreamBuffer)

    序列化并返回的长度

    声明
    public int SerializeAndReturnLength(Type type, object @object, MemoryStreamBuffer buffer)
    参数
    类型 名称 描述
    Type type
    object object
    MemoryStreamBuffer buffer
    返回
    类型 描述
    int
    | 编辑本文 查看源代码

    Serialize<T>(T)

    序列化

    声明
    public static byte[] Serialize<T>(T @object)
    参数
    类型 名称 描述
    T object
    返回
    类型 描述
    byte[]
    类型参数
    名称 描述
    T
    | 编辑本文 查看源代码

    Serialize<T>(T, IBufferWriter<byte>)

    序列化

    声明
    public void Serialize<T>(T @object, IBufferWriter<byte> buffer)
    参数
    类型 名称 描述
    T object
    IBufferWriter<byte> buffer
    类型参数
    名称 描述
    T

    实现

    ISerialize

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX