Is there an Objective-C equivalent for the "Buffer" class in Java?

I am trying to find any equivalent class or library for the Buffer object in Objective C. Here is the documentation for the Buffer class in Java: http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/ Buffer.html I need this in objective-C. Thanks.

+4
source share
2 answers

See NSMutableData or NSData .

NSData and its mutable subclass NSMutableData provide data objects, object-oriented wrappers for byte buffers. Data objects allow simple allocated buffers (that is, data without built-in pointers) to accept the behavior of Foundation objects.

+7
source

Take a look at NSMutableData

+4
source

Source: https://habr.com/ru/post/1402618/


All Articles