Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: net/spdy/array_output_buffer.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/array_output_buffer.h ('k') | net/spdy/array_output_buffer_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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/spdy/array_output_buffer.h"
6
7 namespace net {
8
9 void ArrayOutputBuffer::Next(char** data, int* size) {
10 *data = current_;
11 *size = capacity_ > 0 ? capacity_ : 0;
12 }
13
14 void ArrayOutputBuffer::AdvanceWritePtr(int64_t count) {
15 current_ += count;
16 capacity_ -= count;
17 }
18
19 uint64_t ArrayOutputBuffer::BytesFree() const {
20 return capacity_;
21 }
22
23 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/array_output_buffer.h ('k') | net/spdy/array_output_buffer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698