core: extend pack_val doc string

This commit is contained in:
mitshell 2017-08-23 22:18:35 +02:00
parent 45d90b58fc
commit 6c645d9dd1
2 changed files with 6 additions and 0 deletions

View File

@ -1555,6 +1555,9 @@ def pack_val(*val):
value must be a bytes string or an integer, according to type
bitlen must be an integer over 0
warning: for TYPE_UINT_LE and TYPE_INT_LE, bitlen must be a multiple
of 8 (hence the value will be byte-aligned)
Returns:
buf (tuple of (bytes, integer)) : a tuple containing the actual
resulting bytes string and the length in bits

View File

@ -1525,6 +1525,9 @@ def pack_val(*val):
type must be TYPE_BYTES, TYPE_UINT, TYPE_UINT_LE, TYPE_INT or TYPE_INT_LE
value must be a bytes string or an integer, according to type
bitlen must be an integer over 0
warning: for TYPE_UINT_LE and TYPE_INT_LE, bitlen must be a multiple
of 8 (hence the value will be byte-aligned)
Returns:
buf (tuple of (bytes, integer)) : a tuple containing the actual