开发者

How to create a Objective C class for Buffer

开发者 https://www.devze.com 2023-01-08 09:03 出处:网络
I am getting buffer with its length in a function (void)putEncodedData:(void *)data ofSize:(unsigned)size

I am getting buffer with its length in a function

  • (void)putEncodedData:(void *)data ofSize:(unsigned)size

I want to create a custom class for this buffer data with name AudioData with variables data,size . How to set its @property attribues ? Please help me. Tha开发者_StackOverflow中文版nks in advance


I wouldn't bother. You can encode a collection of bytes with its size in an NSData already; use that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号