internal unsafe StoreTripleResponse_Accessor(byte *_CellPtr

                                                     , ResizeFunctionDelegate func
                                                     )
        {
            m_ptr = _CellPtr;

            ResizeFunction       = func;
            RefId_Accessor_Field = new GuidAccessor(null);        Subject_Accessor_Field = new StringAccessor(null,
                                                                                                              (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        Predicate_Accessor_Field = new StringAccessor(null,
                                                                     (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        Object_Accessor_Field = new StringAccessor(null,
                                                                  (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });
        }
        internal unsafe HelloMessageReponse_Accessor(byte *_CellPtr

                                                     , ResizeFunctionDelegate func
                                                     )
        {
            m_ptr = _CellPtr;

            ResizeFunction = func;
            HelloMessageContent_Accessor_Field = new StringAccessor(null,
                                                                    (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });
        }
コード例 #3
0
        /// <summary>
        /// Determines whether this instance and a specified object have the same value.
        /// </summary>
        /// <param name="obj">The StringAccessor to compare to this instance.</param>
        /// <returns>true if obj is a StringAccessor and its value is the same as this instance; otherwise, false.</returns>
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            StringAccessor b = obj as StringAccessor;

            if ((object)b == null)
            {
                string s = obj as string;
                if ((object)s == null)
                {
                    return(false);
                }
                return(this.ToString() == s);
            }
            return(this.ToString() == b.ToString());
        }
コード例 #4
0
        internal unsafe Triple_Accessor(byte *_CellPtr

                                        , ResizeFunctionDelegate func
                                        )
        {
            m_ptr = _CellPtr;

            ResizeFunction             = func;
            SubjectNode_Accessor_Field = new INode_Accessor(null,
                                                            (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        PredicateNode_Accessor_Field = new INode_Accessor(null,
                                                                         (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        ObjectNode_Accessor_Field = new INode_Accessor(null,
                                                                      (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        Url_Accessor_Field = new StringAccessor(null,
                                                               (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });        Nodes_Accessor_Field = new INode_AccessorListAccessor(null,
                                                                             (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.m_ptr);
                this.m_ptr = this.ResizeFunction(this.m_ptr, ptr_offset + substructure_offset, delta);
                return(this.m_ptr + substructure_offset);
            });
        }
コード例 #5
0
 internal _iterator(StringAccessor target)
 {
     targetPtr = target.m_ptr;
     endPtr    = target.m_ptr + target.length;
 }