public void Write(ByteArray by) { by.WriteUShort((ushort)type); by.WriteUInt(obj_type); by.WriteLong(obj_idx); }