Unity NetworkReader

用于UNET的通用序列化程序(用于读取字节数组)。 

public NetworkReader();

public NetworkReader(NetworkWriter writer);

public NetworkReader(byte[] buffer);

属性 

 public uint Position { get; }

摘要: 缓冲区中的当前位置。

public int Length { get; } 

摘要:  缓冲区的当前长度。

方法

public bool ReadBoolean();

public byte ReadByte();

public byte[] ReadBytes(int count);

public byte[] ReadBytesAndSize();

public char ReadChar();

public Color ReadColor();

public Color32 ReadColor32();

public decimal ReadDecimal();

public double ReadDouble();

public GameObject ReadGameObject();

public short ReadInt16();

public int ReadInt32();     

public long ReadInt64();

public Matrix4x4 ReadMatrix4x4();

public TMsg ReadMessage<TMsg>() where TMsg : MessageBase, new();

public NetworkHash128 ReadNetworkHash128();

public NetworkInstanceId ReadNetworkId();

public NetworkIdentity ReadNetworkIdentity();

public uint ReadPackedUInt32();

public ulong ReadPackedUInt64();

public Plane ReadPlane();

public Quaternion ReadQuaternion();    

public Ray ReadRay();   

public Rect ReadRect();     

public sbyte ReadSByte();     

public NetworkSceneId ReadSceneId();      

public float ReadSingle();

public string ReadString();

public Transform ReadTransform();

public ushort ReadUInt16(); 

public uint ReadUInt32();

public ulong ReadUInt64();

public Vector2 ReadVector2();

public Vector3 ReadVector3();

public Vector4 ReadVector4();

public void SeekZero();

public override string ToString(); 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值