You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read from the file using the file path with DIRECT I/O, starting at offset to fill the output\\_buf or to the max\\_read\\_length. Using direct IO to bypass the OS cache. Helpful when the disk I/O outperform the kernel cache. If O\\_DIRECT is not supported, returns AWS\\_ERROR\\_UNSUPPORTED\\_OPERATION. Notes: - ONLY supports linux for now and raise AWS\\_ERROR\\_UNSUPPORTED\\_OPERATION on all other platforms (eg: FreeBSD). - check the NOTES for O\\_DIRECT in https://man7.org/linux/man-pages/man2/openat.2.html - The offset, length and output\\_buf->buffer all need to be aligned with the page size. Otherwise, AWS\\_ERROR\\_INVALID\\_ARGUMENT will be raised.
7020
+
7021
+
Returns [`AWS_OP_SUCCESS`](@ref), or [`AWS_OP_ERR`](@ref) (after an error has been raised).
7022
+
7023
+
# Arguments
7024
+
* `file_path`: The file path to read from.
7025
+
* `offset`: The offset in the file to start reading from.
7026
+
* `max_read_length`: The maximum number of bytes to read.
7027
+
* `output_buf`: The buffer read to.
7028
+
* `out_actual_read`: The actual number of bytes read.
The function serve the same purpose as [`aws_file_path_read_from_offset_direct_io`](@ref). Please use [`aws_file_path_read_from_offset_direct_io`](@ref) directly.
union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)
10880
+
union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)
10781
10881
10782
10882
honor the ABI compat
10783
10883
"""
10784
-
structvar"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"
10884
+
structvar"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"
10785
10885
data::NTuple{8, UInt8}
10786
10886
end
10787
10887
10788
-
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol)
10888
+
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol)
10789
10889
f ===:scheduled&&returnPtr{Bool}(x +0)
10790
10890
f ===:reserved&&returnPtr{Csize_t}(x +0)
10791
10891
returngetfield(x, f)
10792
10892
end
10793
10893
10794
-
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)", f::Symbol)
10795
-
r =Ref{var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"}(x)
10796
-
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"}, r)
10894
+
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)", f::Symbol)
10895
+
r =Ref{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}(x)
10896
+
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, r)
10797
10897
fptr =getproperty(ptr, f)
10798
10898
GC.@preserve r unsafe_load(fptr)
10799
10899
end
10800
10900
10801
-
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol, v)
10901
+
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol, v)
10802
10902
unsafe_store!(getproperty(x, f), v)
10803
10903
end
10804
10904
@@ -10818,7 +10918,7 @@ function Base.getproperty(x::Ptr{aws_task}, f::Symbol)
10818
10918
f ===:node&&returnPtr{aws_linked_list_node}(x +24)
10819
10919
f ===:priority_queue_node&&returnPtr{aws_priority_queue_node}(x +40)
10820
10920
f ===:type_tag&&returnPtr{Ptr{Cchar}}(x +48)
10821
-
f ===:abi_extension&&returnPtr{var"union (unnamed at /home/runner/.julia/artifacts/1a010ff8b8278069f288fbf362d6550c9c6f09ad/include/aws/common/task_scheduler.h:40:5)"}(x +56)
10921
+
f ===:abi_extension&&returnPtr{var"union (unnamed at /home/runner/.julia/artifacts/458f6fa7396dedb92029fe05626904baeedf7254/include/aws/common/task_scheduler.h:40:5)"}(x +56)
Read from the file using the file path with DIRECT I/O, starting at offset to fill the output\\_buf or to the max\\_read\\_length. Using direct IO to bypass the OS cache. Helpful when the disk I/O outperform the kernel cache. If O\\_DIRECT is not supported, returns AWS\\_ERROR\\_UNSUPPORTED\\_OPERATION. Notes: - ONLY supports linux for now and raise AWS\\_ERROR\\_UNSUPPORTED\\_OPERATION on all other platforms (eg: FreeBSD). - check the NOTES for O\\_DIRECT in https://man7.org/linux/man-pages/man2/openat.2.html - The offset, length and output\\_buf->buffer all need to be aligned with the page size. Otherwise, AWS\\_ERROR\\_INVALID\\_ARGUMENT will be raised.
6997
+
6998
+
Returns [`AWS_OP_SUCCESS`](@ref), or [`AWS_OP_ERR`](@ref) (after an error has been raised).
6999
+
7000
+
# Arguments
7001
+
* `file_path`: The file path to read from.
7002
+
* `offset`: The offset in the file to start reading from.
7003
+
* `max_read_length`: The maximum number of bytes to read.
7004
+
* `output_buf`: The buffer read to.
7005
+
* `out_actual_read`: The actual number of bytes read.
The function serve the same purpose as [`aws_file_path_read_from_offset_direct_io`](@ref). Please use [`aws_file_path_read_from_offset_direct_io`](@ref) directly.
union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)
10857
+
union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)
10758
10858
10759
10859
honor the ABI compat
10760
10860
"""
10761
-
structvar"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"
10861
+
structvar"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"
10762
10862
data::NTuple{8, UInt8}
10763
10863
end
10764
10864
10765
-
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol)
10865
+
function Base.getproperty(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol)
10766
10866
f ===:scheduled&&returnPtr{Bool}(x +0)
10767
10867
f ===:reserved&&returnPtr{Csize_t}(x +0)
10768
10868
returngetfield(x, f)
10769
10869
end
10770
10870
10771
-
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)", f::Symbol)
10772
-
r =Ref{var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"}(x)
10773
-
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"}, r)
10871
+
function Base.getproperty(x::var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)", f::Symbol)
10872
+
r =Ref{var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"}(x)
10873
+
ptr = Base.unsafe_convert(Ptr{var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"}, r)
10774
10874
fptr =getproperty(ptr, f)
10775
10875
GC.@preserve r unsafe_load(fptr)
10776
10876
end
10777
10877
10778
-
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol, v)
10878
+
function Base.setproperty!(x::Ptr{var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"}, f::Symbol, v)
10779
10879
unsafe_store!(getproperty(x, f), v)
10780
10880
end
10781
10881
@@ -10795,7 +10895,7 @@ function Base.getproperty(x::Ptr{aws_task}, f::Symbol)
10795
10895
f ===:node&&returnPtr{aws_linked_list_node}(x +24)
10796
10896
f ===:priority_queue_node&&returnPtr{aws_priority_queue_node}(x +40)
10797
10897
f ===:type_tag&&returnPtr{Ptr{Cchar}}(x +48)
10798
-
f ===:abi_extension&&returnPtr{var"union (unnamed at /home/runner/.julia/artifacts/01b2d93e5c4155c6afe84946168da2ac5166a6ae/include/aws/common/task_scheduler.h:40:5)"}(x +56)
10898
+
f ===:abi_extension&&returnPtr{var"union (unnamed at /home/runner/.julia/artifacts/8cbe1f93d5c6e7a9916e1ea7bed856d4f9d110bb/include/aws/common/task_scheduler.h:40:5)"}(x +56)
0 commit comments