You can create your very own implementation of Bytes by extending the AbstractBytes class.

You will need to implement the following functions:

You can choose to simplify greatly by extending the DelegatingBytes class instead.