xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/common/simple_buffer_allocator.cc (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "quiche/common/simple_buffer_allocator.h"
6 
7 namespace quiche {
8 
New(size_t size)9 char* SimpleBufferAllocator::New(size_t size) { return new char[size]; }
10 
New(size_t size,bool)11 char* SimpleBufferAllocator::New(size_t size, bool /* flag_enable */) {
12   return New(size);
13 }
14 
Delete(char * buffer)15 void SimpleBufferAllocator::Delete(char* buffer) { delete[] buffer; }
16 
17 }  // namespace quiche
18