OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef ArrayPiece_h | 5 #ifndef ArrayPiece_h |
6 #define ArrayPiece_h | 6 #define ArrayPiece_h |
7 | 7 |
8 #include "wtf/Allocator.h" | 8 #include "platform/wtf/Allocator.h" |
9 #include "wtf/Forward.h" | 9 #include "platform/wtf/Forward.h" |
10 #include "wtf/WTFExport.h" | 10 #include "platform/wtf/WTFExport.h" |
11 | 11 |
12 namespace WTF { | 12 namespace WTF { |
13 | 13 |
14 // This class is for passing around un-owned bytes as a pointer + length. | 14 // This class is for passing around un-owned bytes as a pointer + length. |
15 // It supports implicit conversion from several other data types. | 15 // It supports implicit conversion from several other data types. |
16 // | 16 // |
17 // ArrayPiece has the concept of being "null". This is different from an empty | 17 // ArrayPiece has the concept of being "null". This is different from an empty |
18 // byte range. It is invalid to call methods other than isNull() on such | 18 // byte range. It is invalid to call methods other than isNull() on such |
19 // instances. | 19 // instances. |
20 // | 20 // |
(...skipping 27 matching lines...) Expand all Loading... |
48 void* m_data; | 48 void* m_data; |
49 unsigned m_byteLength; | 49 unsigned m_byteLength; |
50 bool m_isNull; | 50 bool m_isNull; |
51 }; | 51 }; |
52 | 52 |
53 } // namespace WTF | 53 } // namespace WTF |
54 | 54 |
55 using WTF::ArrayPiece; | 55 using WTF::ArrayPiece; |
56 | 56 |
57 #endif // ArrayPiece_h | 57 #endif // ArrayPiece_h |
OLD | NEW |