]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: Make the use of static areas more convenient
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 1 May 2017 20:59:36 +0000 (16:59 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Wed, 17 May 2017 18:22:18 +0000 (14:22 -0400)
commit8416f1c569a2b8ac7a25fc43f7e9e955b49bfd62
treed5ad002c7ca727279524256edb9b3881fa099b4e
parent9e8172b8404efd9978bbe6a2b6db8c8f0be50d6d
buffer: Make the use of static areas more convenient

Make three wrapper functions to tidy up the process of making a
bufferlist holding a single static buffer.

The lack of any decent handling of const in buffer::list makes me wax
wroth, but it's a bit much to fix right now.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/common/buffer.cc
src/include/buffer.h