public override void Write() { base.Write(); foreach (var entry in Entries) { Wr.Write((byte)entry.Value); } }
private void button2_Click(object sender, EventArgs e) { Lno.Clear(); Lname.Clear(); Wr.Clear(); // Lpress.Clear(); Lbz.Clear(); Ldate.Clear(); }
public override void Write() { base.Write(); Wr.Write(_majorBrand); Wr.Write(_minorVersion); foreach (var compatibleBrand in CompatibleBrands) { Wr.Write(compatibleBrand); } }
public virtual void Write() { if (IsSmallBox) { Wr.Write((uint)GetSize()); Wr.Write(Type); } else { Wr.Write(1); Wr.Write(Type); Wr.Write(GetSize()); } //if (UserBox.TYPE.equals(getType())) //{ // byteBuffer.put(getUserType()); //} }
public static void Log(string Ruta, string Tex) { StreamWriter Wr; string Archivo = "\\Eventos\\Eventos" + DateTime.Now.Year.ToString() + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Day.ToString() + ".txt"; Ruta = Ruta.Substring(6); Wr = File.AppendText(Ruta + Archivo); try { Wr.NewLine = "\r\n"; Wr.Write(Wr.NewLine); Wr.Write(DateTime.Now.ToLongTimeString() + ": " + Tex); Wr.Close(); } catch (Exception ex) { Wr.Close(); } }
public static void Write(this double x, Wr wr) { wr.WriteDouble(x); }
public static void Write(this char x, Wr wr) { wr.WriteChar(x); }
public static void Write(this short x, Wr wr) { wr.WriteInt16(x); }
public static void Write(this long x, Wr wr) { wr.WriteInt64(x); }
public static void Write(this int x, Wr wr) { wr.WriteInt32(x); }
public static void Write(this decimal x, Wr wr) { wr.WriteDecimal(x); }
public override void Write(object val, Wr wr) { wr.WriteChar((Char)val); }
public static void Write(Int val, Wr wr) { wr.WriteInt32(val); }
public override void Write(object val, Wr wr) { wr.WriteUInt64((UInt64)val); }
public override void Write(object val, Wr wr) { wr.WriteUInt8((Byte)val); }
public override void Write(object val, Wr wr) { wr.WriteBoolean((Boolean)val); }
public override void Write(object val, Wr wr) { wr.WriteString((String)val); }
public override void Write(object val, Wr wr) { wr.WriteSingle((Single)val); }
public static void Write(this string x, Wr wr) { wr.WriteString(x); }
public override void Write(object val, Wr wr) { wrChMeth.Invoke(null, new object[]{val, wr}); }
public override void Write(object val, Wr wr) { wr.WriteDouble((Double)val); }
public override void Write(object val, Wr wr) { wrChMeth.Invoke(null, new object[] { val, wr }); }
public static void Write(this sbyte x, Wr wr) { wr.WriteInt8(x); }
public static void Write(this float x, Wr wr) { wr.WriteSingle(x); }
public override void Write(object val, Wr wr) { wr.WriteInt8((SByte)val); }
public abstract void Write(object val, Wr wr);
public override void Write(object val, Wr wr) { wr.WriteUInt32((UInt32)val); }
public override void Write(object val, Wr wr) { wr.WriteInt64((Int64)val); }
public static void Write(this byte[] x, Wr wr) { wr.WriteBytes(x); }
public override void Write(object val, Wr wr) { wr.WriteDecimal((Decimal)val); }
public static void Write(this bool x, Wr wr) { wr.WriteBoolean(x); }
public override void Write() { Wr.Write(Version); Wr.Write24(Flags); }
public override void Write(object val, Wr wr) { wr.WriteInt32((Int32)val); }