Exemplo n.º 1
0
 /** Create a new StringParameters instance. */
 //template<size_t Tnum_param>
 public StringParameters(long[] data)
 {
     this.parent = null;
     this.data   = data.Cast <ulong>().ToArray();
     this.type   = null;
     this.offset = 0;
 }
Exemplo n.º 2
0
        public int offset;             /// Length of the data array.

        /** Create a new StringParameters instance. */
        public StringParameters(ulong[] data, char[] type)
        {
            this.parent = null;
            this.data   = data;
            this.type   = type;
            this.offset = 0;
        }
Exemplo n.º 3
0
        /**
         * Create a new StringParameters instance that can reference part of the data of
         * the given partent instance.
         */
        StringParameters(StringParameters parent, uint size)
        {
            this.parent = parent;
            data        = parent.data;   //was + parent.offset
            offset      = parent.offset; //was 0

            Debug.Assert(data.Length <= parent.GetDataLeft());
            if (parent.type == null)
            {
                this.type = null;
            }
            else
            {
                this.type = parent.type; //was + parent.offset
            }
        }