Gst.Buffer.prototype.memset

function memset(offset:gsize, val:guint8, size:gsize):gsize {
    // Gjs wrapper for gst_buffer_memset()
}

Fill @buf with size bytes with val starting from offset.

offset

the offset in buffer

val

the value to set

size

the size to set

Returns

The amount of bytes filled. This value can be lower than size when buffer did not contain enough data.