c
wStream* sbuffer = calloc(1, sizeof(wStream));
if (!sbuffer || !Stream_EnsureCapacity(sbuffer, SrcSize)) {
    // Handle allocation failure
    free(sbuffer);
    return ERROR_OUTOFMEMORY;
}
