public void ParseTarga24RunLength() { byte[] data = new byte[18]; byte[] stream = { 132, 2, 4, 6, 128, 8, 10, 12 }; CompressedTarga.RunLength(data, stream, 0, 0, 3); Assert.Equal(new byte[] { 2, 4, 6, 2, 4, 6, 2, 4, 6, 2, 4, 6, 2, 4, 6, 0, 0, 0 }, data); }
public void ParseTarga24SingleSmallRunLength() { byte[] data = new byte[6]; byte[] stream = { 129, 2, 4, 6 }; CompressedTarga.RunLength(data, stream, 0, 0, 3); Assert.Equal(new byte[] { 2, 4, 6, 2, 4, 6 }, data); }