diff options
author | Peter Saxton <peterhsaxton@gmail.com> | 2020-05-28 14:20:41 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-05-29 13:06:51 +0100 |
commit | 694e2faea0a03ed2a98e0e1b0ef9bdde70321204 (patch) | |
tree | ad33786412e5be0dafa51744106d99b96bbc9e0f /src | |
parent | e69407b2e9efb230814fbf356975c22f5a826767 (diff) | |
download | gleam_stdlib-694e2faea0a03ed2a98e0e1b0ef9bdde70321204.tar.gz gleam_stdlib-694e2faea0a03ed2a98e0e1b0ef9bdde70321204.zip |
run the formatter
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/binary.gleam | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gleam/binary.gleam b/src/gleam/binary.gleam index 1fa54a8..a45ae5d 100644 --- a/src/gleam/binary.gleam +++ b/src/gleam/binary.gleam @@ -11,13 +11,16 @@ pub external fn from_string(String) -> Binary = /// /// Binary part will start at given position and continue up to specified length. /// A negative length can be used to extract bytes at the end of a binary: -pub external fn part(string: Binary, position: Int, length: Int) -> Binary = "binary" "part" - +pub external fn part(string: Binary, position: Int, length: Int) -> Binary = + "binary" "part" /// Returns an integer which is the number of bytes in the binary. pub external fn byte_size(Binary) -> Int = "erlang" "byte_size" // Not sure these will be necessary with bit syntax for for now I think they are -pub external fn int_to_u32(Int) -> Result(Binary, Nil) = "binary_native" "int_to_u32" -pub external fn int_from_u32(Binary) -> Result(Int, Nil) = "binary_native" "int_from_u32" +pub external fn int_to_u32(Int) -> Result(Binary, Nil) = + "binary_native" "int_to_u32" + +pub external fn int_from_u32(Binary) -> Result(Int, Nil) = + "binary_native" "int_from_u32" |