nibble_alloc.h
来自「ATM 网 络 协 议 实 现 源 代 码」· C头文件 代码 · 共 52 行
H
52 行
/* * nibble_alloc.h - handles buffer allocation * MS 91 * * Copyright (C) 1992 Michael Sample and the University of British Columbia * * This library is free software; you can redistribute it and/or * modify it provided that this copyright/license information is retained * in original form. * * If you modify this file, you must clearly indicate your changes. * * This source code is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */#ifndef _nibble_alloc_h_#define _nibble_alloc_h_typedef struct NibbleBuf{ char* start; char* end; char* curr; struct NibbleBuf* next;} NibbleBuf;typedef struct NibbleMem{ NibbleBuf* firstNibbleBuf; NibbleBuf* currNibbleBuf; unsigned long int incrementSize;} NibbleMem;void InitNibbleMem PROTO((unsigned long int initialSize, unsigned long int incrementSize));void ShutdownNibbleMem();void ServiceNibbleFault PROTO((unsigned long int size));void* NibbleAlloc PROTO((unsigned long int size));void ResetNibbleMem();#endif /* conditional include */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?