public Ice.OutputStream writeParamEncaps(byte[] v, bool ok) { if (!ok && _observer != null) { _observer.userException(); } if (_response) { var os = new Ice.OutputStream(_instance, Ice.Util.currentProtocolEncoding); os.writeBlob(Protocol.replyHdr); os.writeInt(_current.requestId); os.writeByte(ok ? ReplyStatus.replyOK : ReplyStatus.replyUserException); if (v == null || v.Length == 0) { os.writeEmptyEncapsulation(_current.encoding); } else { os.writeEncapsulation(v); } return(os); } else { return(null); } }
public Ice.OutputStream writeEmptyParams() { if (_response) { var os = new Ice.OutputStream(_instance, Ice.Util.currentProtocolEncoding); os.writeBlob(Protocol.replyHdr); os.writeInt(_current.requestId); os.writeByte(ReplyStatus.replyOK); os.writeEmptyEncapsulation(_current.encoding); return(os); } else { return(null); } }