public void Write(MachineID value) { byte[] array = value.ToByteArray(); Buffer.BlockCopy(array, 0, this.Bytes.Array, this.offset, array.Length); this.offset += array.Length; }
public static int CalculateStructureSize(this MachineID value) { return(16); }
public IAsyncResult BeginLogin(string nexonID, string characterID, IPAddress localAddress, IPAddress remoteAddress, bool canTry, bool isTrial, MachineID machineID, ICollection <int> gameRoomClients, AsyncCallback callback, object state) { Login login = new Login(nexonID, characterID, localAddress, remoteAddress, canTry, isTrial, machineID, gameRoomClients); return(this.Transmit(login.Serialize(), nexonID, characterID, callback, state)); }