The scodec-bits project provides convenient mechanisms to specify constant data:
This syntax is quite clear until you need to assemble a ByteVector from pieces:
Note that the referenced variable must be a ByteVector!
Placing the substitution within the string requires an expression, rather than the simple variable reference.
An alternative is to explicitly concatenate the ByteVectors: