Function write (8/32)

Function write