# write

`import { write } from "destack:net";`

Write to one stream connection.

```ds title="write"
export function write(connection: &'a Connection, buffer: &'b readonly [uint8]): AsyncResult<uint64, HostError>
```

[language/library/src/net/net.ds:95:100](https://github.com/destack-sh/destack/blob/main/language/library/src/net/net.ds#L95-L100)
