diff --git a/KaitaiStream.cs b/KaitaiStream.cs index 7bf34c0..01510de 100644 --- a/KaitaiStream.cs +++ b/KaitaiStream.cs @@ -46,7 +46,7 @@ public KaitaiStream(byte[] bytes) : base(new MemoryStream(bytes)) /// public bool IsEof { - get { return BaseStream.Position >= BaseStream.Length; } + get { return BaseStream.Position >= BaseStream.Length && BitsLeft == 0; } } /// diff --git a/README.md b/README.md index 0ffe272..c0e647a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Further reading: ## Licensing -Copyright 2016-2017 Kaitai Project: MIT license +Copyright 2016-2019 Kaitai Project: MIT license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the