The wiggle representation of a function that returns Result<u32, FastlyStatus> and one that takes a u32 outparam as its last argument and returns Result<(), FastlyStatus> are the same, which means that we can support communicating the length needed to resolve a FastlyStatus::BufferLen error without changing the abi of fastly_config_store::get or fastly_dictionary::get.
This PR makes this change to both fastly_config_store::get and fastly_dictionary::get, allowing SDKs to better adapt when buffer-length errors occur.
The wiggle representation of a function that returns
Result<u32, FastlyStatus>
and one that takes au32
outparam as its last argument and returnsResult<(), FastlyStatus>
are the same, which means that we can support communicating the length needed to resolve aFastlyStatus::BufferLen
error without changing the abi offastly_config_store::get
orfastly_dictionary::get
.This PR makes this change to both
fastly_config_store::get
andfastly_dictionary::get
, allowing SDKs to better adapt when buffer-length errors occur.