public static void WriteWord(Stream os, int v) { os.WriteByte((byte)(v & 0xff)); os.WriteByte((byte)((v >> 8) & 0xff)); }