Return a new BinaryStreamRef with only the first N elements remaining.
Synopsis
Declared in <llvm/Support/BinaryStreamRef.h>
BinaryStreamRef
keep_front(uint64_t N) const;
Return Value
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array. It provides copy‐semantics and read only access to a "window" of the underlying BinaryStream. Note that BinaryStreamRef is not a BinaryStream. That is to say, it does not inherit and override the methods of BinaryStream. In general, you should not pass around pointers or references to BinaryStreams and use inheritance to achieve polymorphism. Instead, you should pass around BinaryStreamRefs by value and achieve polymorphism that way.
Created with MrDocs