webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Instance Methods | Properties | List of all members
RTCDataBuffer Class Reference

#import <RTCDataChannel.h>

Inheritance diagram for RTCDataBuffer:
NSObject NSObject

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithData:isBinary:
 
(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithData:isBinary:
 
(instancetype) - initWithNativeBuffer: [implementation]
 
(instancetype) - initWithNativeBuffer: [implementation]
 

Properties

NSDatadata
 
BOOL isBinary
 
const webrtc::DataBuffernativeDataBuffer [implementation]
 

Method Documentation

◆ initWithData:isBinary:() [1/2]

- (instancetype) initWithData: (NSData *)  data
isBinary: (BOOL isBinary 
Initial value:
{
std::unique_ptr<webrtc::DataBuffer> _dataBuffer

Initialize an RTCDataBuffer from NSData. |isBinary| indicates whether |data| contains UTF-8 or binary data.

◆ initWithData:isBinary:() [2/2]

- (instancetype) initWithData: (NSData *)  data
isBinary: (BOOL isBinary 

Initialize an RTCDataBuffer from NSData. |isBinary| indicates whether |data| contains UTF-8 or binary data.

◆ initWithNativeBuffer:() [1/2]

- (instancetype) initWithNativeBuffer: (const webrtc::DataBuffer &)  nativeBuffer
implementation

Initialize an RTCDataBuffer from a native DataBuffer.

◆ initWithNativeBuffer:() [2/2]

- (instancetype) initWithNativeBuffer: (const webrtc::DataBuffer &)  nativeBuffer
implementation

Initialize an RTCDataBuffer from a native DataBuffer.

◆ NS_UNAVAILABLE() [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/2]

- (instancetype) NS_UNAVAILABLE

Property Documentation

◆ data

- (NSData *) data
readnonatomicassign

NSData representation of the underlying buffer.

◆ isBinary

- (BOOL) isBinary
readnonatomicassign

Indicates whether |data| contains UTF-8 or binary data.

◆ nativeDataBuffer

- (const DataBuffer* RTCDataBuffer()):
readnonatomicassignimplementation

The native DataBuffer representation of this RTCDatabuffer object. This is needed to pass to the underlying C++ APIs.


The documentation for this class was generated from the following files: