From 8831b95add496a88264b76a4f67816367492115e Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Tue, 12 Mar 2024 05:52:38 -0600 Subject: [PATCH] Add another byte_buf constructor --- src/AwsC.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AwsC.jl b/src/AwsC.jl index b386bcd..56e21ce 100644 --- a/src/AwsC.jl +++ b/src/AwsC.jl @@ -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)