| Copyright | Alexander Krupenkin 2018 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | noportable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Solidity.Prim.Bytes
Description
Bytes and BytesN primitive types.
Synopsis
- data Bytes
- type BytesN n = SizedByteArray n Bytes
The dynamic length Bytes type
Simplest Byte Array
Instances
| Eq Bytes | |
| Ord Bytes | |
| Show Bytes | |
| IsString Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes Methods fromString :: String -> Bytes # | |
| Semigroup Bytes | |
| Monoid Bytes | |
| ToJSON Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes | |
| FromJSON Bytes Source # | |
| NormalForm Bytes | |
Defined in Data.ByteArray.Bytes Methods toNormalForm :: Bytes -> () # | |
| NFData Bytes | |
Defined in Data.ByteArray.Bytes | |
| ByteArray Bytes | |
| ByteArrayAccess Bytes | |
| AbiGet Bytes Source # | |
| AbiPut Bytes Source # | |
| AbiType Bytes Source # | |
| (KnownNat n, n <= 32) => IsString (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes Methods fromString :: String -> BytesN n # | |
| (KnownNat n, n <= 32) => ToJSON (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes | |
| (KnownNat n, n <= 32) => FromJSON (BytesN n) Source # | |
| (KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
| (KnownNat n, n <= 32) => AbiPut (BytesN n) Source # | |
| n <= 32 => AbiType (BytesN n) Source # | |
The fixed length BytesN type
type BytesN n = SizedByteArray n Bytes Source #
Sized byte array with fixed length in bytes
Orphan instances
| IsString Bytes Source # | |
Methods fromString :: String -> Bytes # | |
| ToJSON Bytes Source # | |
| FromJSON Bytes Source # | |
| AbiGet ByteString Source # | |
Methods abiGet :: Get ByteString Source # | |
| AbiGet Bytes Source # | |
| AbiPut ByteString Source # | |
Methods | |
| AbiPut Bytes Source # | |
| AbiType ByteString Source # | |
| AbiType Bytes Source # | |
| (KnownNat n, n <= 32) => IsString (BytesN n) Source # | |
Methods fromString :: String -> BytesN n # | |
| (KnownNat n, n <= 32) => ToJSON (BytesN n) Source # | |
| (KnownNat n, n <= 32) => FromJSON (BytesN n) Source # | |
| (KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
| (KnownNat n, n <= 32) => AbiPut (BytesN n) Source # | |
| n <= 32 => AbiType (BytesN n) Source # | |