The Slice method creates a new instace of cnet::Bytes that is a slice from the current object
cnet::Bytes Slice(
size_t from,
size_t to = SliceOptions::End
);
from
Specifies the index from where to start slicing, should be greater then 0 and smaller then Size()
to
Specifies the index of the last byte, should be greater then from. Default value is SliceOptions::End (-1)
A new cnet::Bytes
object