/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeLong(this.timeSeconds); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { base.toWriteBytesFull(stream); stream.startWriteObj(); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.key); stream.writeInt(this.value); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeInt(this.timePass); stream.writeInt(this.timeMax); stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版,为DB) /// </summary> public void writeBytesFull(BytesWriteStream stream) { try { beforeWrite(); } catch (Exception e) { Ctrl.errorLog(e); } stream.startWriteObj(); try { toWriteBytesFull(stream); } catch (Exception e) { Ctrl.errorLog(e); } stream.endWriteObj(); }
/// <summary> /// 写入字节流(完整版) /// </summary> protected override void toWriteBytesFull(BytesWriteStream stream) { stream.startWriteObj(); stream.writeUTF(this.name); stream.writeInt(this.type); stream.writeUTF(this.style); if (this.children != null) { stream.writeBoolean(true); stream.writeLen(this.children.size()); if (!this.children.isEmpty()) { UIObjectData[] childrenVValues = this.children.getValues(); for (int childrenVI = 0, childrenVLen = this.children.length(); childrenVI < childrenVLen; ++childrenVI) { UIObjectData childrenV = childrenVValues[childrenVI]; if (childrenV != null) { stream.writeBoolean(true); childrenV.writeBytesFull(stream); } else { stream.writeBoolean(false); } } } } else { stream.writeBoolean(false); } if (this.intArgs != null) { stream.writeBoolean(true); int[] intArgsT = this.intArgs; stream.writeLen(intArgsT.Length); for (int intArgsVI = 0, intArgsVLen = intArgsT.Length; intArgsVI < intArgsVLen; ++intArgsVI) { int intArgsV = intArgsT[intArgsVI]; stream.writeInt(intArgsV); } } else { stream.writeBoolean(false); } if (this.strArgs != null) { stream.writeBoolean(true); string[] strArgsT = this.strArgs; stream.writeLen(strArgsT.Length); for (int strArgsVI = 0, strArgsVLen = strArgsT.Length; strArgsVI < strArgsVLen; ++strArgsVI) { string strArgsV = strArgsT[strArgsVI]; stream.writeUTF(strArgsV); } } else { stream.writeBoolean(false); } stream.endWriteObj(); }