Signature length and trailing 1

After the sighash is signed, a "01" is attached at the end of it, I couldn't find a way of doing this without hardcoding the length of the array.