blob: 3056c3347c9cf8028b5a6e2b692437068f9138a9 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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
7namespace quic {
8
9char* SimpleBufferAllocator::New(size_t size) {
10 return new char[size];
11}
12
13char* SimpleBufferAllocator::New(size_t size, bool /* flag_enable */) {
14 return New(size);
15}
16
17void SimpleBufferAllocator::Delete(char* buffer) {
18 delete[] buffer;
19}
20
21} // namespace quic