/// <summary> /// Deserialized byte array to a BounceActionData instance /// </summary> /// <param name="buffer">Byte array contains data of an ActionData instance.</param> /// <returns>Bytes count that deserialized in buffer.</returns> public uint Deserialize(byte[] buffer) { BufferReader bufferReader = new BufferReader(buffer); this.Bounce = (BounceCode)bufferReader.ReadUInt32(); return(bufferReader.Position); }
/// <summary> /// Deserialized byte array to a BounceActionData instance /// </summary> /// <param name="buffer">Byte array contains data of an ActionData instance.</param> /// <returns>Bytes count that deserialized in buffer.</returns> public uint Deserialize(byte[] buffer) { BufferReader bufferReader = new BufferReader(buffer); this.Bounce = (BounceCode)bufferReader.ReadUInt32(); return bufferReader.Position; }