port Decoder.prepareFinish()
Decoder: replace MemoryStream with BinaryReader