blob: 3056c3347c9cf8028b5a6e2b692437068f9138a9 [file] [log] [blame] [edit]
// 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 "net/third_party/quiche/src/quic/core/quic_simple_buffer_allocator.h"
namespace quic {
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 quic