@carlosmn's right. `size` should be a `UIntPtr` here.