getSegment method
Implementation
int getSegment(IStatus status, int bufferLength, Pointer<Uint8> buffer,
Pointer<UnsignedInt> segmentLength) {
final res =
_getSegment(self, status.self, bufferLength, buffer, segmentLength);
status.checkStatus();
return res;
}