[ofw] [RFC] winverbs implementation approach
Sean Hefty
sean.hefty at intel.com
Fri Mar 14 09:25:59 PDT 2008
>In any case I was thinking about the implementation of the following
>class:
>
>Const int MaxSize=100;
>
>Class allocator {
>Char buffer[MaxSize];
>Public:
> void *alloc(int size) {
> if (size <= MaxSize)
> return buffer;
> else
> return new char[size];
> }
> void free(char *p) {
> if(p!= buffer)
> delete []p;
> }
>}
This looks like a reasonable approach. Thanks
- Sean
More information about the ofw
mailing list