`val buf = buffer` then do the null check
# random
k
val buf = buffer
then do the null check