@NonNull
	public Data toData() {
		return new Data(buffer.toByteArray());
	}
@Test
	public void toData() {
		final DataStream stream = new DataStream();
		stream.write(new byte[] { 0, 1, 2, 3, 4, 5, 6});
		final Data data = stream.toData();
		assertEquals(0x100, Objects.requireNonNull(data.getIntValue(Data.FORMAT_UINT16_LE, 0)).intValue());
	}