public SessionDetached SetCode(SessionDetachCode value) { _Code = value; packing_flags |= 512; Dirty = true; return(this); }
public override void Read(IDecoder dec) { packing_flags = (int)dec.ReadUint16(); if ((packing_flags & 256) != 0) { _Name = dec.ReadVbin16(); } if ((packing_flags & 512) != 0) { _Code = SessionDetachCodeGetter.Get(dec.ReadUint8()); } }
public SessionDetached(byte[] Name, SessionDetachCode Code, params Option[] options) { SetName(Name); SetCode(Code); for (int i = 0; i < options.Length; i++) { switch (options[i]) { case Option.SYNC: Sync = true; break; case Option.BATCH: Batch = true; break; case Option.NONE: break; default: throw new Exception("invalid option: " + options[i]); } } }
public void SessionDetached(byte[] Name, SessionDetachCode Code, params Option[] options) { Invoke(new SessionDetached(Name, Code, options)); }
public void SessionDetached(byte[] Name, SessionDetachCode Code, params Option[] options) { Invoke(new SessionDetached(Name, Code, options)); }