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 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 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 { 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 { 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 { } }