MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / next

Method next

3rd_party/Src/ode/ode/src/obstack.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116
117void *dObStack::next (int num_bytes)
118{
119 // this functions like alloc, except that no new storage is ever allocated
120 if (!current_arena) return 0;
121 current_ofs += num_bytes;
122 ROUND_UP_OFFSET_TO_EFFICIENT_SIZE (current_arena,current_ofs);
123 if (current_ofs >= current_arena->used) {
124 current_arena = current_arena->next;
125 if (!current_arena) return 0;
126 current_ofs = sizeof (Arena);
127 ROUND_UP_OFFSET_TO_EFFICIENT_SIZE (current_arena,current_ofs);
128 }
129 return ((char*) current_arena) + current_ofs;
130}

Callers 10

dJointGroupEmptyFunction · 0.80
get_objectMethod · 0.80
removeMethod · 0.80
createBlockMethod · 0.80
initMethod · 0.80
verify_bucketsMethod · 0.80
add_to_bucketMethod · 0.80
decrease_openedMethod · 0.80
remove_best_openedMethod · 0.80
index_dir_sqfsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected