package Ġno . ve g ves en . saga . modules . shared . extensions Ċ Ċ import Ġjava . io . Buffered InputStream Ċ import Ġjava . io . InputStream Ċ Ċ fun ĠInputStream . buffer And Peek ( bytes To Peek : ĠInt Ġ= Ġ 1 0 2 4 ): ĠPair < Buffered InputStream , ĠByteArray > Ġ{ ĊĠĠĠ Ġval Ġbuffered Ġ= ĠBuffered InputStream ( this ) ĊĠĠĠ Ġbuffered . mark ( bytes To Peek ) ĊĠĠĠ Ġval Ġfirst Bytes Ġ= Ġbuffered . read N Bytes ( bytes To Peek ) ĊĠĠĠ Ġbuffered . reset () ĊĠĠĠ Ġreturn Ġbuffered Ġto Ġfirst Bytes Ċ } Ċ