public void FromBytes(byte[] buffer, ref int index) { try { TargetType = buffer[index++]; ApplierPicture = buffer[index++]; int length = 0; TargetID = KXTBitConvert.ToString(buffer, index, out length); index += length; ApplierID = KXTBitConvert.ToString(buffer, index, out length); index += length; ApplierName = KXTBitConvert.ToString(buffer, index, out length); index += length; ApplierDescribe = KXTBitConvert.ToString(buffer, index, out length); index += length; ApplyTime = KXTBitConvert.ToDateTime(buffer, index); index += 8; Message = KXTBitConvert.ToString(buffer, index, out length); index += length; } catch { } }
public void FromBytes(byte[] buffer, int index) { try { UserPicture = buffer[index++]; int length = 0; UserID = KXTBitConvert.ToString(buffer, index, out length); index += length; UserName = KXTBitConvert.ToString(buffer, index, out length); index += length; UserDescribe = KXTBitConvert.ToString(buffer, index, out length); index += length; UserPhone = KXTBitConvert.ToString(buffer, index, out length); index += length; UserEmail = KXTBitConvert.ToString(buffer, index, out length); index += length; } catch { } }
public void FromBytes(byte[] buffer, int index) { try { UserPicture = buffer[index++]; int length = 0; GroupID = KXTBitConvert.ToString(buffer, index, out length); index += length; GroupName = KXTBitConvert.ToString(buffer, index, out length); index += length; GroupDescribe = KXTBitConvert.ToString(buffer, index, out length); index += length; CreatorID = KXTBitConvert.ToString(buffer, index, out length); index += length; CreatorName = KXTBitConvert.ToString(buffer, index, out length); index += length; CreateTime = KXTBitConvert.ToDateTime(buffer, index); } catch { } }
public void FromByte(byte[] buffer, int index, out int length) { length = 0; try { Folder = buffer[index++]; ++length; Type = (FileType)BitConverter.ToInt32(buffer, index); index += 4; length += 4; Size = BitConverter.ToInt32(buffer, index); index += 4; length += 4; Time = KXTBitConvert.ToDateTime(buffer, index); index += 8; length += 8; Name = KXTBitConvert.ToString(buffer, index, out int count); length += count; } catch { } }
public void FromBytes(byte[] buffer, int index) { try { UserID = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { ChatType = buffer[index++]; ID = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { UserID = KXTBitConvert.ToString(buffer, index, out int count); FriendID = KXTBitConvert.ToString(buffer, index + count); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { SearchType = buffer[index++]; SearchString = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { UserID = KXTBitConvert.ToString(buffer, index, out int length); index += length; UserEmail = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { Name = KXTBitConvert.ToString(buffer, index, out int length); index += length; Path = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { Sender = KXTBitConvert.ToString(buffer, index, out int length); index += length; Friend = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { GroupID = KXTBitConvert.ToString(buffer, index, out int length); index += length; GroupDescribe = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { byte[] temp = new byte[16]; Array.Copy(buffer, index, temp, 0, temp.Length); NextLabel = new Guid(temp); index += temp.Length; Password = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { ApplyResult = buffer[index++]; TargetID = KXTBitConvert.ToString(buffer, index, out int length); index += length; ApplierID = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { TargetType = buffer[index++]; TargetID = KXTBitConvert.ToString(buffer, index, out int length); index += length; ApplyTime = KXTBitConvert.ToDateTime(buffer, index); index += 8; Message = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { Size = BitConverter.ToInt32(buffer, index); index += 4; Name = KXTBitConvert.ToString(buffer, index, out int count); index += count; Path = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { try { Time = KXTBitConvert.ToDateTime(buffer, index); index += 8; Sender = KXTBitConvert.ToString(buffer, index, out int length); index += length; Target = KXTBitConvert.ToString(buffer, index, out length); index += length; Message = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index, out int length) { length = 0; try { length = BitConverter.ToInt32(buffer, index); index += 4; Time = KXTBitConvert.ToDateTime(buffer, index); index += 8; Sender = KXTBitConvert.ToString(buffer, index, out int count); index += count; Message = KXTBitConvert.ToString(buffer, index); } catch { } }
public void FromBytes(byte[] buffer, int index) { List <string> lists = new List <string>(); try { int count = (buffer.Length - index) >> 4; if (0 < count) { for (int i = 0; i < count; ++i) { lists.Add(KXTBitConvert.ToString(buffer, index)); index += PreFriendIDLength; } } } catch { } FriendsID = lists.ToArray(); }
public void FromBytes(byte[] buffer, int index) { try { byte[] temp = new byte[16]; Array.Copy(buffer, index, temp, 0, temp.Length); NextLabel = new Guid(temp); index += temp.Length; Picture = buffer[index++]; int length = 0; Name = KXTBitConvert.ToString(buffer, index, out length); index += length; Password = KXTBitConvert.ToString(buffer, index, out length); index += length; Describe = KXTBitConvert.ToString(buffer, index); } catch { } }