⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nibble_alloc.h

📁 ATM 网 络 协 议 实 现 源 代 码
💻 H
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -