Skip to content

Commit

Permalink
use bytes instead of Bytes.t
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Mehnert <[email protected]>
  • Loading branch information
palainp and hannesm committed Oct 1, 2024
1 parent 115c526 commit bb0f321
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mirage_net.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module type S = sig
val pp_error: error Fmt.t
type t
val disconnect : t -> unit Lwt.t
val write: t -> size:int -> (Bytes.t -> int) -> (unit, error) result Lwt.t
val write: t -> size:int -> (bytes -> int) -> (unit, error) result Lwt.t
val listen: t -> header_size:int -> (string -> unit Lwt.t) -> (unit, error) result Lwt.t
val mac: t -> Macaddr.t
val mtu: t -> int
Expand Down
2 changes: 1 addition & 1 deletion src/mirage_net.mli
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module type S = sig
(** Disconnect from the network device. While this might take some time to
complete, it can never result in an error. *)

val write: t -> size:int -> (Bytes.t -> int) -> (unit, error) result Lwt.t
val write: t -> size:int -> (bytes -> int) -> (unit, error) result Lwt.t
(** [write net ~size fill] allocates a buffer of length [size], where [size]
must not exceed the interface maximum packet size ({!mtu} plus Ethernet
header). The allocated buffer is zeroed and passed to the [fill] function
Expand Down

0 comments on commit bb0f321

Please sign in to comment.