if (bulkReadsSupported && input instanceof UnsafeInput) {
UnsafeInput unsafeInput = (UnsafeInput)input;
unsafeInput.readBytes(object, offset, len);
} else if (bulkReadsSupported && input instanceof UnsafeMemoryInput) {
UnsafeMemoryInput unsafeInput = (UnsafeMemoryInput)input;
unsafeInput.readBytes(object, offset, len);
} else {
readSlow(input, object);
}
}