NotAdam / Lumina

A simple, performant and extensible framework for interacting with FFXIV game data
Do What The F*ck You Want To Public License
103 stars 53 forks source link

Fix `DeflateStream.Read` on net6.0 #27

Closed ackwell closed 3 years ago

ackwell commented 3 years ago

because apparently this is good API design.

ref. https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/partial-byte-reads-in-streams

taking bets i fucked some code style

w/o this fix, reading action table results in a SqPackInflateException: failed to inflate block, bytesRead (14639) != BlockDataSize (16000) but i'm sure it's not limited to actions