示例#1
0
文件: memp.cs 项目: mxslcn/uITron3
        internal pointer memp_malloc(mempb_t type)
        {
            switch (type)
            {
            case mempb_t.MEMP_PBUF:
                return(new pointer(new byte[pbuf.length], 0));

            case mempb_t.MEMP_PBUF_POOL:
                return(new pointer(new byte[opt.PBUF_POOL_BUFSIZE], 0));

            default:
                throw new InvalidOperationException();
            }
        }
示例#2
0
文件: memp.cs 项目: h7ga40/uITron3
 internal pointer memp_malloc(mempb_t type)
 {
     switch (type) {
     case mempb_t.MEMP_PBUF:
         return new pointer(new byte[pbuf.length], 0);
     case mempb_t.MEMP_PBUF_POOL:
         return new pointer(new byte[opt.PBUF_POOL_BUFSIZE], 0);
     default:
         throw new InvalidOperationException();
     }
 }
示例#3
0
文件: memp.cs 项目: h7ga40/uITron3
 internal void memp_free(mempb_t type, pointer pcb)
 {
 }
示例#4
0
文件: memp.cs 项目: mxslcn/uITron3
 internal void memp_free(mempb_t type, pointer pcb)
 {
 }