StringG.overwriteLen

Overwrites part of a string, lengthening it if necessary. This function will work with embedded nuls.

class StringG
overwriteLen
(
size_t pos
,
string val
,
ptrdiff_t len
)

Parameters

pos size_t

the position at which to start overwriting

val string

the string that will overwrite the @string starting at @pos

len ptrdiff_t

the number of bytes to write from @val

Return Value

Type: StringG

@string

Meta

Since

2.14