[Concept] [PATCH 01/17] membuf: Add a function to set up a static membuf