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);
            });
        }
예제 #2
0
        internal t_list_accessor(byte *_CellPtr, ResizeFunctionDelegate func)
        {
            m_ptr          = _CellPtr;
            ResizeFunction = func;
            m_ptr         += 4;

            MODULE_CALL("ListElementAccessorInitialization", "$t_data_type");
        }
예제 #3
0
        internal unsafe __type_injection___Accessor_ReadOnly(byte *_CellPtr, ResizeFunctionDelegate func)
        {
            CellPtr        = _CellPtr;
            ResizeFunction = func;

            f2_Accessor_Field = new longListAccessor(null,
                                                     (ptr, ptr_offset, delta) =>
            {
                int substructure_offset = (int)(ptr - this.CellPtr);
                this.CellPtr            = this.ResizeFunction(this.CellPtr, ptr_offset + substructure_offset, delta);
                return(this.CellPtr + substructure_offset);
            });
        }
예제 #4
0
 internal Triple_AccessorListAccessor(byte *_CellPtr, ResizeFunctionDelegate func)
 {
     m_ptr           = _CellPtr;
     ResizeFunction  = func;
     m_ptr          += 4;
     elementAccessor = new Triple_Accessor(null,
                                           (ptr, ptr_offset, delta) =>
     {
         int substructure_offset = (int)(ptr - this.m_ptr);
         this.m_ptr          = this.ResizeFunction(this.m_ptr - sizeof(int), ptr_offset + substructure_offset + sizeof(int), delta);
         *(int *)this.m_ptr += delta;
         this.m_ptr         += sizeof(int);
         return(this.m_ptr + substructure_offset);
     });
 }
예제 #5
0
        internal unsafe t_struct_name_Accessor(byte *_CellPtr
                                               /*IF("!%struct_fixed")*/
                                               , ResizeFunctionDelegate func
                                               /*END*/)
        {
            CellPtr = _CellPtr;
            IF("!%struct_fixed");
            ResizeFunction = func;
            END();

            FOREACH();
            USE_LIST("t_field");
            MODULE_CALL("StructFieldAccessorInitialization", "$t_field");
            END();
        }
        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);
            });
        }
        internal unsafe TripleStream_Accessor(byte *_CellPtr

                                              , ResizeFunctionDelegate func
                                              )
        {
            m_ptr = _CellPtr;

            ResizeFunction         = func;
            triples_Accessor_Field = new Triple_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);
            });
        }
예제 #8
0
        internal unsafe t_struct_name_Accessor(byte *_CellPtr
                                               /*IF("!%struct_fixed")*/
                                               , ResizeFunctionDelegate func
                                               /*END*/)
        {
            CellPtr = _CellPtr;
            IF("!%struct_fixed");
            ResizeFunction = func;
            ELSE();
            ResizeFunction = (a, b, c) => { return(Throw.invalid_resize_on_fixed_struct()); };
            END();

            FOREACH();
            USE_LIST("t_field");
            MODULE_CALL("StructFieldAccessorInitialization", "$t_field");
            END();
        }
예제 #9
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);
            });
        }
예제 #10
0
 internal longListAccessor(byte *_CellPtr, ResizeFunctionDelegate func)
 {
     ResizeFunction = func;
     CellPtr        = _CellPtr + sizeof(int);
 }
예제 #11
0
 internal doubleListAccessor(byte *_CellPtr, ResizeFunctionDelegate func)
 {
     m_ptr          = _CellPtr;
     ResizeFunction = func;
     m_ptr         += sizeof(int);
 }
예제 #12
0
 internal intListAccessor(byte *_CellPtr, ResizeFunctionDelegate func)
 {
     CellPtr        = _CellPtr;
     ResizeFunction = func;
     CellPtr       += 4;
 }
예제 #13
0
 internal StringAccessor(byte *_CellPtr, ResizeFunctionDelegate func)
 {
     m_ptr          = _CellPtr;
     ResizeFunction = func;
     m_ptr         += 4;
 }