---
id: memory-fill
name: Memory.fill
category: memory
kind: namespace-method
tokens: Memory.fill
sig: Memory.fill(buf, value, n) -> void
tip: Set n bytes to a value.
order: 3
ns: Memory
member: fill
---
Sets the first n bytes of buf to the byte value.