Diffusion Apple API  6.2.0
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Functions Variables Properties Pages
Properties | Instance Methods | List of all members
PTDiffusionBytes Class Reference

Introduction

A value that is internally represented as binary data.

A bytes object is immutable.

Since
5.9
Inheritance diagram for PTDiffusionBytes:
PTDiffusionBinary PTDiffusionContent PTDiffusionJSON PTDiffusionRecordV2

Properties

NSData * data
 

Instance Methods

(instancetype) - initWithData:
 
(BOOL) - isEqualToBytes:
 

Method Documentation

- (instancetype) initWithData: (NSData *)  data

Returns a bytes object initialized with the given data.

Parameters
dataA data object encapsulating the bytes.
Note
Since Diffusion 5.9 this method has been moved from PTDiffusionContent to this new super interface.
Since
5.9
- (BOOL) isEqualToBytes: (nullable PTDiffusionBytes *)  bytes

Compares the receiver to the given bytes.

Parameters
bytesThe bytes object with which to compare the receiver.
Returns
YES if the bytes are equal to the contents of the receiver, otherwise NO.
Note
Two bytes objects are equal if they hold the same number of bytes, and if the bytes at the same position in the objects are the same.
Since
5.9

Property Documentation

- (NSData*) data
readnonatomiccopy

The data encapsulated by the receiver.

Note
Since Diffusion 5.9 this property has been moved from PTDiffusionContent to this new super interface.
Since
5.9