A value that is internally represented as binary data.
More...
#include <PTDiffusionBytes.h>
A value that is internally represented as binary data.
A bytes object is immutable.
- Since
- 5.9
◆ initWithData:
| - (instancetype) initWithData: |
|
(NSData *) | data |
|
Returns a bytes object initialized with the given data.
- Parameters
-
| data | A data object encapsulating the bytes. |
- Returns
- Bytes object initialized with the given data.
- Note
- Since Diffusion 5.9 this method has been moved from PTDiffusionContent to this new super interface.
- Since
- 5.9
◆ isEqualToBytes:
Compares the receiver to the given bytes.
- Parameters
-
| bytes | The 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
◆ data
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