- bitstring->blob bitstring #!optional zero-extendindprocedure
- bitstring->u8vector bitstring #!optional zero-extendindprocedure
If bitstring not aligned on 8 bit boundary rest bits extending with zeroes. zero-extendind optional argument, 'left you get an integer value of rest bit, 'right give you internal bitstring repsesentation where bits follow one by one, default value 'left.
zero-extending to left <bitstring 0 9 (1 1 1 1 1 1 1 1 1)> turn into #u8(#xff #x01)
zero-extending to right, this might be usefull when you want to store your string to the disc and then load back. <bitstring 0 9 (1 1 1 1 1 1 1 1 1)> turn into #u8(#xff #x80)