copyUsingLengthPrefix

Copy bytes in, writing the length as a 1 or 2 byte vInt prefix.