Home
last modified time | relevance | path

Searched refs:OpenCopyOf (Results 1 – 8 of 8) sorted by relevance

/external/libbrillo/brillo/streams/
Dmemory_stream.h57 static StreamPtr OpenCopyOf(const void* buffer, size_t size, ErrorPtr* error);
58 static StreamPtr OpenCopyOf(std::string buffer, ErrorPtr* error);
59 static StreamPtr OpenCopyOf(const char* buffer, ErrorPtr* error);
62 inline static StreamPtr OpenCopyOf(std::vector<T> buffer, ErrorPtr* error) { in OpenCopyOf() function
Dmemory_stream.cc29 StreamPtr MemoryStream::OpenCopyOf(const void* buffer, in OpenCopyOf() function in brillo::MemoryStream
44 StreamPtr MemoryStream::OpenCopyOf(std::string buffer, ErrorPtr* error) { in OpenCopyOf() function in brillo::MemoryStream
54 StreamPtr MemoryStream::OpenCopyOf(const char* buffer, ErrorPtr* error) { in OpenCopyOf() function in brillo::MemoryStream
55 return OpenCopyOf(buffer, std::strlen(buffer), error); in OpenCopyOf()
Dmemory_stream_unittest.cc220 StreamPtr stream = MemoryStream::OpenCopyOf(buffer, sizeof(buffer), nullptr); in TEST()
246 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
270 StreamPtr stream = MemoryStream::OpenCopyOf(str, nullptr); in TEST()
298 StreamPtr stream = MemoryStream::OpenCopyOf(data, nullptr); in TEST()
/external/libbrillo/brillo/http/
Dhttp_form_data.cc87 streams->push_back(MemoryStream::OpenCopyOf(data_, nullptr)); in ExtractDataStreams()
130 streams->push_back(MemoryStream::OpenCopyOf(data, nullptr)); in ExtractDataStreams()
138 streams->push_back(MemoryStream::OpenCopyOf(data, nullptr)); in ExtractDataStreams()
Dhttp_connection_fake.cc114 return MemoryStream::OpenCopyOf(nullptr, 0, error); in ExtractDataStream()
Dhttp_transport_fake.cc242 SetData(MemoryStream::OpenCopyOf(data, data_size, nullptr)); in Reply()
Dhttp_request.cc192 StreamPtr stream = MemoryStream::OpenCopyOf(data, size, error); in AddRequestBody()
Dhttp_utils.cc158 MemoryStream::OpenCopyOf(data, data_size, nullptr), in SendRequest()