blob: 983ab7c6cfc521645ef738a51898e34a55e9b4cf [file] [edit]
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef THIRD_PARTY_CREDENTIO_FORMATS_RIFF_CREATE_RIFF_H_
#define THIRD_PARTY_CREDENTIO_FORMATS_RIFF_CREATE_RIFF_H_
#include <string>
#include "absl/strings/string_view.h"
namespace credentio_riff {
// Creates a RIFF chunk with the given ID and data.
std::string Chunk(absl::string_view chunk_id, absl::string_view data);
// Creates a RIFF chunk with ID "RIFF", with the given form and subchunks.
std::string RiffChunk(absl::string_view form, absl::string_view chunks);
// Creates a RIFF chunk with ID "LIST", with the given type and subchunks.
std::string ListChunk(absl::string_view type, absl::string_view chunks);
} // namespace credentio_riff
#endif // THIRD_PARTY_CREDENTIO_FORMATS_RIFF_CREATE_RIFF_H_