aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-02-11 21:09:53 +0800
committerchriseth <c@ethdev.com>2016-02-11 21:09:53 +0800
commitc6c3c78327751db3e27458596394ce3533a7fcbc (patch)
treee0c59eb242bccfb3f2e6a3cf4066f406e923ca11 /docs
parent7b5d96c43bc4019d8f64951be64a1d702ee63e5d (diff)
parent13732aed12008e0c389b55a8ef435173a7448809 (diff)
downloaddexon-solidity-c6c3c78327751db3e27458596394ce3533a7fcbc.tar.gz
dexon-solidity-c6c3c78327751db3e27458596394ce3533a7fcbc.tar.zst
dexon-solidity-c6c3c78327751db3e27458596394ce3533a7fcbc.zip
Merge pull request #382 from chriseth/bytesIndex
Index access for bytesXX.
Diffstat (limited to 'docs')
-rw-r--r--docs/types.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 9811df69..27ab82ff 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -110,6 +110,11 @@ Operators:
* Comparisons: `<=`, `<`, `==`, `!=`, `>=`, `>` (evaluate to `bool`)
* Bit operators: `&`, `|`, `^` (bitwise exclusive or), `~` (bitwise negation)
+* Index access: If `x` is of type `bytesI`, then `x[k]` for `0 <= k < I` returns the `k` th byte (read-only).
+
+Members:
+
+* `.length` yields the fixed length of the byte array (read-only).
Dynamically-sized byte array
----------------------------