Skip to content

Commit

Permalink
Add another byte_buf constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Mar 12, 2024
1 parent 698120b commit 8831b95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AwsC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ last_error() = Error(LibAwsC.aws_error_str(LibAwsC.aws_last_error()))
throw_error() = throw(last_error())

byte_buf(n::Integer, ptr::Ptr) = LibAwsC.aws_byte_buf(0, ptr, n, C_NULL)
byte_buf(ptr::Ptr, n::Integer) = LibAwsC.aws_byte_buf(n, ptr, n, C_NULL)

byte_cursor(n::Integer, ptr::Ptr) = LibAwsC.aws_byte_cursor(n, ptr)
byte_cursor(s::String) = LibAwsC.aws_byte_cursor_from_c_str(s)
Expand Down

0 comments on commit 8831b95

Please sign in to comment.