| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/curvecp/circular_buffer.h" | 5 #include "net/curvecp/circular_buffer.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 length_ -= len; | 68 length_ -= len; |
| 69 head_ += len; | 69 head_ += len; |
| 70 DCHECK_LE(head_, capacity_); | 70 DCHECK_LE(head_, capacity_); |
| 71 if (head_ == capacity_) | 71 if (head_ == capacity_) |
| 72 head_ = 0; | 72 head_ = 0; |
| 73 } | 73 } |
| 74 return bytes_read; | 74 return bytes_read; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace net | 77 } // namespace net |
| OLD | NEW |