OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import <AvailabilityMacros.h> | 11 #import <AvailabilityMacros.h> |
12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
13 | 13 |
14 #import "webrtc/base/objc/RTCMacros.h" | 14 #import <WebRTC/RTCMacros.h> |
15 | 15 |
16 NS_ASSUME_NONNULL_BEGIN | 16 NS_ASSUME_NONNULL_BEGIN |
17 | 17 |
18 RTC_EXPORT | 18 RTC_EXPORT |
19 @interface RTCDataBuffer : NSObject | 19 @interface RTCDataBuffer : NSObject |
20 | 20 |
21 /** NSData representation of the underlying buffer. */ | 21 /** NSData representation of the underlying buffer. */ |
22 @property(nonatomic, readonly) NSData *data; | 22 @property(nonatomic, readonly) NSData *data; |
23 | 23 |
24 /** Indicates whether |data| contains UTF-8 or binary data. */ | 24 /** Indicates whether |data| contains UTF-8 or binary data. */ |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 /** Closes the data channel. */ | 126 /** Closes the data channel. */ |
127 - (void)close; | 127 - (void)close; |
128 | 128 |
129 /** Attempt to send |data| on this data channel's underlying data transport. */ | 129 /** Attempt to send |data| on this data channel's underlying data transport. */ |
130 - (BOOL)sendData:(RTCDataBuffer *)data; | 130 - (BOOL)sendData:(RTCDataBuffer *)data; |
131 | 131 |
132 @end | 132 @end |
133 | 133 |
134 NS_ASSUME_NONNULL_END | 134 NS_ASSUME_NONNULL_END |
OLD | NEW |