fill
open override fun fill(value: PolyglotValue, offset: Int?, end: Int?, encoding: String?): BufferInstance
Fill the buffer starting at offset and stopping at end with the given value. If the value is a string, it is converted to bytes using encoding (UTF-8 by default).
If the value is a non-number (i.e. Buffer, Uint8Array, or string) and does not fill the requested range, it will be looped to compensate for missing length.