vibe.d beta banner
get vibe.d
0.7.30

Function skipBytes

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

Prototype

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

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.