public int getDataSize() { int size = 0; size += Object_Library.getSize(this.ObjectGroup, this.ObjectVariation); return(size); }
public uint getObjectQuantity() // { uint Ocount; if ((this.Qualifier.Qcode >= 0) && (this.Qualifier.Qcode <= 5)) //Start - Stop { Ocount = (this.Stop - this.Start) + 1; } else if ((this.Qualifier.Qcode >= 7) && (this.Qualifier.Qcode <= 9)) // Quantity { Ocount = this.Count; } else { Ocount = 0; } // ------------------- check if Object is bit -----------------------------// int Osize = Object_Library.getSize(this.ObjectGroup, this.ObjectVariation); if (Osize == 0x81) // bit quantity { if ((Ocount % 8) == 0) // convert bit to byte { Ocount = Ocount / 8; } else { Ocount = (Ocount / 8) + 1; } } //--------------------------------------------------------------------------// return(Ocount); }
public int getObjectSize() { int size = 0; size += Qualifier.getIndexSize(); size += Object_Library.getSize(this.ObjectGroup, this.ObjectVariation); if (size == 0x81) { size = 1; } return(size); }