From 9a2606d1a2a1b47300ce717dcac3c7e4e8260040 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Nov 2009 12:17:35 -0800 Subject: [PATCH] buffer: add create_static constructor --- src/include/buffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/buffer.h b/src/include/buffer.h index f96b3d65b385a..43bb492ef2e07 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -274,6 +274,9 @@ public: static raw* claim_malloc(unsigned len, char *buf) { return new raw_malloc(len, buf); } + static raw* create_static(unsigned len, char *buf) { + return new raw_static(buf, len); + } static raw* create_page_aligned(unsigned len) { #ifndef __CYGWIN__ -- 2.39.5