| Index: mojo/public/cpp/bindings/lib/string_serialization.h
|
| diff --git a/mojo/public/cpp/bindings/lib/string_serialization.h b/mojo/public/cpp/bindings/lib/string_serialization.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bad2a0c2766d37e84e933e0581e45933005b4965
|
| --- /dev/null
|
| +++ b/mojo/public/cpp/bindings/lib/string_serialization.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_STRING_SERIALIZATION_H_
|
| +#define MOJO_PUBLIC_CPP_BINDINGS_LIB_STRING_SERIALIZATION_H_
|
| +
|
| +#include "mojo/public/cpp/bindings/lib/array_internal.h"
|
| +#include "mojo/public/cpp/bindings/string.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +size_t GetSerializedSize_(const String& input);
|
| +void Serialize_(const String& input, internal::Buffer* buffer,
|
| + internal::String_Data** output);
|
| +void Deserialize_(internal::String_Data* input, String* output);
|
| +
|
| +} // namespace mojo
|
| +
|
| +#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_STRING_SERIALIZATION_H_
|
|
|