Lines Matching refs:MemoryStream
16 MemoryStream::MemoryStream(
21 StreamPtr MemoryStream::OpenRef(const void* buffer,
29 StreamPtr MemoryStream::OpenCopyOf(const void* buffer,
38 StreamPtr MemoryStream::OpenRef(const std::string& buffer, ErrorPtr* error) {
44 StreamPtr MemoryStream::OpenCopyOf(std::string buffer, ErrorPtr* error) {
50 StreamPtr MemoryStream::OpenRef(const char* buffer, ErrorPtr* error) {
54 StreamPtr MemoryStream::OpenCopyOf(const char* buffer, ErrorPtr* error) {
58 StreamPtr MemoryStream::Create(size_t reserve_size, ErrorPtr* error) {
64 StreamPtr MemoryStream::CreateRef(std::string* buffer, ErrorPtr* error) {
70 StreamPtr MemoryStream::CreateRefForAppend(std::string* buffer,
77 StreamPtr MemoryStream::CreateEx(
82 return StreamPtr{new MemoryStream(std::move(container), stream_position)};
85 bool MemoryStream::IsOpen() const { return container_ != nullptr; }
86 bool MemoryStream::CanRead() const { return IsOpen(); }
88 bool MemoryStream::CanWrite() const {
92 bool MemoryStream::CanSeek() const { return IsOpen(); }
93 bool MemoryStream::CanGetSize() const { return IsOpen(); }
95 uint64_t MemoryStream::GetSize() const {
99 bool MemoryStream::SetSizeBlocking(uint64_t size, ErrorPtr* error) {
105 uint64_t MemoryStream::GetRemainingSize() const {
111 uint64_t MemoryStream::GetPosition() const {
115 bool MemoryStream::Seek(int64_t offset,
140 bool MemoryStream::ReadNonBlocking(void* buffer,
157 bool MemoryStream::WriteNonBlocking(const void* buffer,
171 bool MemoryStream::FlushBlocking(ErrorPtr* error) {
175 bool MemoryStream::CloseBlocking(ErrorPtr* error) {
181 bool MemoryStream::CheckContainer(ErrorPtr* error) const {
185 bool MemoryStream::WaitForData(AccessMode mode,
192 bool MemoryStream::WaitForDataBlocking(AccessMode in_mode,