vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function skipBytes

Consumes bytes.length bytes of the stream and determines if the contents match up.

bool skipBytes(InputStream) (
  InputStream stream,
  const(ubyte)[] bytes
)
if (isInputStream!InputStream);

Returns

True iff the consumed bytes equal the passed array.

Throws

Throws an exception if reading from the stream fails.

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.