QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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 "net/third_party/quiche/src/quic/core/quic_simple_buffer_allocator.h" |
| 6 | |
| 7 | namespace quic { |
| 8 | |
| 9 | char* SimpleBufferAllocator::New(size_t size) { |
| 10 | return new char[size]; |
| 11 | } |
| 12 | |
| 13 | char* SimpleBufferAllocator::New(size_t size, bool /* flag_enable */) { |
| 14 | return New(size); |
| 15 | } |
| 16 | |
| 17 | void SimpleBufferAllocator::Delete(char* buffer) { |
| 18 | delete[] buffer; |
| 19 | } |
| 20 | |
| 21 | } // namespace quic |