buffer(dispatchData:)
Create a fresh ByteBuffer
containing the bytes contained in the given DispatchData
.
func buffer(dispatchData: DispatchData) -> ByteBuffer
Returns
The ByteBuffer
containing the written bytes.
This will allocate a new ByteBuffer
with enough space to fit the bytes of the DispatchData
and potentially some extra space.