summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quiche/common/simple_buffer_allocator.cc
blob: ff3498451acfbb9d661a935bdfb4443910a1e45d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "quiche/common/simple_buffer_allocator.h"

namespace quiche {

char* SimpleBufferAllocator::New(size_t size) { return new char[size]; }

char* SimpleBufferAllocator::New(size_t size, bool /* flag_enable */) {
  return New(size);
}

void SimpleBufferAllocator::Delete(char* buffer) { delete[] buffer; }

}  // namespace quiche