Add ByteReader::GetData to avoid copying data
commitb78829b9b6196c835089ba31e72d210af9064ab4
authorcirdan <cirdansw@gmail.com>
Sun, 16 Jul 2017 08:50:36 +0000 (16 10:50 +0200)
committercirdan <cirdansw@gmail.com>
Sun, 16 Jul 2017 08:50:36 +0000 (16 10:50 +0200)
treede299990852c4eae895472cbc992d18d3c2bbd42
parente1647a469e01aff52cd17cd5e280d5770567a039
Add ByteReader::GetData to avoid copying data

Add a method ByteReader::GetData to ensure that the stream has
a certain amount of data left and get a pointer to such data.
This allows to avoid copying the data into temporary storage.
src/newgrf.cpp