Home
last modified time | relevance | path

Searched refs:OpenRef (Results 1 – 6 of 6) sorted by relevance

/external/libbrillo/brillo/streams/
Dmemory_stream.h74 static StreamPtr OpenRef(const void* buffer, size_t size, ErrorPtr* error);
75 static StreamPtr OpenRef(const std::string& buffer, ErrorPtr* error);
76 static StreamPtr OpenRef(const char* buffer, ErrorPtr* error);
79 inline static StreamPtr OpenRef(const std::vector<T>& buffer, in OpenRef() function
Dmemory_stream.cc21 StreamPtr MemoryStream::OpenRef(const void* buffer, in OpenRef() function in brillo::MemoryStream
38 StreamPtr MemoryStream::OpenRef(const std::string& buffer, ErrorPtr* error) { in OpenRef() function in brillo::MemoryStream
50 StreamPtr MemoryStream::OpenRef(const char* buffer, ErrorPtr* error) { in OpenRef() function in brillo::MemoryStream
51 return OpenRef(buffer, std::strlen(buffer), error); in OpenRef()
Dmemory_stream_unittest.cc206 StreamPtr stream = MemoryStream::OpenRef(buffer, sizeof(buffer), nullptr); in TEST()
234 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
258 StreamPtr stream = MemoryStream::OpenRef(str, nullptr); in TEST()
282 StreamPtr stream = MemoryStream::OpenRef(data, nullptr); in TEST()
345 stream = MemoryStream::OpenRef(buffer, nullptr); in TEST()
/external/libbrillo/brillo/http/
Dhttp_connection_fake.cc105 return MemoryStream::OpenRef(response_.GetData(), error); in ExtractDataStream()
Dhttp_connection_curl_unittest.cc179 StreamPtr stream = MemoryStream::OpenRef(request_data, nullptr); in TEST_F()
227 StreamPtr stream = MemoryStream::OpenRef(request_data, nullptr); in TEST_F()
Dhttp_form_data.cc134 streams->push_back(MemoryStream::OpenRef("\r\n", nullptr)); in ExtractDataStreams()