anmolitor/elm-protoc-utils/1.0.0

NOTE: the latest version is 2.3.0

Formerly andreasewering/elm-protoc-utils. Search finds this package by either name.

Protobuf.Utils.Int64

Utility methods for Int64 needed in the Protobuf/gRPC context.

toSignedString : Int64 -> String

Interpret a Int64 as an unsigned integer, and give its string representation.

toSignedString (fromInt 10)
    --> "10"


toSignedString (fromInt -10)
    --> "-10"
toUnsignedString : Int64 -> String

Interpret a Int64 as an unsigned integer, and give its string representation

toUnsignedString (fromInt 10)
    --> "10"


toUnsignedString (fromInt -10)
    --> "18446744073709551606"