mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Replace MessageReader and MessageWriter with Message.
Change-Id: I4b23d5a1e0e39dc2487f252a0947f11328e33090
This commit is contained in:
@@ -50,6 +50,10 @@ class WireEncoder {
|
||||
/* Returns number of bytes written to memory buffer. */
|
||||
std::size_t size() const { return m_cur - m_start; }
|
||||
|
||||
llvm::StringRef ToStringRef() const {
|
||||
return llvm::StringRef(m_start, m_cur - m_start);
|
||||
}
|
||||
|
||||
/* Ensures the buffer has sufficient space to write len bytes. Reallocates
|
||||
* the buffer if necessary.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user