views:

39

answers:

1

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. Thanks in advance

+3  A: 

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

Graham Lee