コード例 #1
0
        // Token: 0x060023B8 RID: 9144 RVA: 0x00078C30 File Offset: 0x00076E30
        public unsafe Struct35(char *str, int length)
        {
            if (length > Struct35.int_0)
            {
                throw new ArgumentException(Struct35.string_0);
            }

            fixed(char *ptr = &this.struct36_0.char_0)
            {
                Class216.smethod_2(ptr, str, length);
                ptr[length] = '\0';
            }

            this.byte_0 = (byte)length;
        }
コード例 #2
0
        // Token: 0x060023B7 RID: 9143 RVA: 0x00078BA8 File Offset: 0x00076DA8
        public unsafe Struct35(Struct35 str, int startIndex, int length)
        {
            if (startIndex >= (int)str.byte_0)
            {
                throw new ArgumentException("The start index is too large.");
            }
            if (length > (int)str.byte_0 - startIndex)
            {
                throw new ArgumentException("The length is too large.");
            }
            if (length > Struct35.int_0)
            {
                throw new ArgumentException(Struct35.string_0);
            }

            fixed(char *ptr = &this.struct36_0.char_0)
            {
                Class216.smethod_2(ptr, &str.struct36_0.char_0 + startIndex, length);
                ptr[length] = '\0';
            }

            this.byte_0 = (byte)length;
        }