Skip to content
VecPushFrontArrR

VecPushFrontArrR

VecPushFrontArrR

Description

Push a complete array into this vector front, with R-value semantics.

Unlike VecPushFrontArrL, this does NOT zero out the source array after insertion.

Parameters

Name Direction Description
v in,out Vector to insert array items into.
arr in Array to be inserted.
count in Number (non-zero) of items in array.

Success

v

Failure

Does not return on failure

Usage example (Cross-references)

Usage examples (Cross-references)
                        values[i] = (i32)extract_u32(data, offset, size);
                    }
                    VecPushFrontArrR(vec, values, count);
                }
                break;
        // Push an array to the front of empty vector
        int values[] = {10, 20, 30, 40, 50};
        VecPushFrontArrR(&vec, values, 5);
    
        // Check length
        // Push another array to the front
        int more_values[] = {60, 70, 80};
        VecPushFrontArrR(&vec, more_values, 3);
    
        // Check length
    /// FAILURE : NULL
    ///
    #define StrPushFrontCstr(str, cstr, len) VecPushFrontArrR((str), (cstr), (len))
    
    ///
Last updated on