]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: add create_static constructor
authorSage Weil <sage@newdream.net>
Wed, 18 Nov 2009 20:17:35 +0000 (12:17 -0800)
committerSage Weil <sage@newdream.net>
Thu, 19 Nov 2009 00:25:35 +0000 (16:25 -0800)
src/include/buffer.h

index f96b3d65b385af34817aec114ca41ef316f85db4..43bb492ef2e07c29c1abc24d17fbf84f250e07ed 100644 (file)
@@ -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__