Contents

withData

Allocates an OSData object with a copy of bytes from another OSData.

Declaration

static OSDataPtr withData(const OSData *inData);

Parameters

  • inData:

    An OSData object to copy. The data will be copied at the time of the call.

Return Value

NULL on failure, otherwise the allocated OSData with reference count 1 to be released by the caller.

See Also

Creating a Data Object