MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / get_buffer_size

Function get_buffer_size

include/init/buffer_size.h:73–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71#endif
72
73static u32 get_buffer_size(u8 footprint)
74{
75 if(footprint == USE_2MB) return _2MB_;
76 if(footprint == USE_3MB) return _3MB_;
77
78 if(footprint == 1) //MIN
79 {
80 #ifndef LITE_EDITION
81 return ( 320*KB);
82 #else
83 return ( _256KB_);
84 #endif
85 }
86 else
87 if(footprint == 2 || footprint >= 4) //MAX
88 {
89 return ( 1280*KB);
90 }
91 else
92 if(footprint == 3) //MIN+
93 {
94 return (_512KB_);
95 }
96 else //STANDARD
97 {
98 return ( 896*KB);
99 }
100}
101
102static void set_buffer_sizes(u8 footprint)
103{

Callers 2

set_buffer_sizesFunction · 0.85
www_memory.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected