/// <summary> /// Performs an update on a record from a network recievement /// </summary> /// <param name="buffer">Raw client buffer</param> private void PerformUpdate(byte[] buffer) { DataRecord record = DataRecord.FromBytes(buffer); this.database.Update(record); }
/// <summary> /// Performs a find based on a network buffer and returns a client found /// </summary> /// <param name="buffer">Raw client buffer</param> /// <returns>DataRecord corresponding to memberid in network buffer</returns> private DataRecord PerformFind(byte[] buffer) { DataRecord record = DataRecord.FromBytes(buffer); return(this.database.Find(record.MemberID)); }
/// <summary> /// Converts and inserts a buffer into the Database /// </summary> /// <param name="buffer">Raw client buffer</param> private void PerformInsert(byte[] buffer) { DataRecord record = DataRecord.FromBytes(buffer); this.database.Insert(record); }