getBytes:maxLength:usedLength:encoding

ptions:ran ge:remainingRange:
what is the use of this method... can anyone explain..The description of parameters are....
Parameters
buffer
A buffer into which to store the bytes from the receiver. The returned bytes are not NULL-terminate
maxBufferCount
The maximum number of bytes to write to buffer.
usedBufferCount
The number of bytes used from buffer. Pass NULL if you do not need this value.
encoding
The encoding to use for the returned bytes.
options
A mask to specify options to use for converting the receiver’s contents to encoding (if conversion is
necessary).
range
The range of characters in the receiver to get.
leftover
The remaining range. Pass NULL If you do not need this value.
Return Value
YES if some characters were converted, otherwise NO.