#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_BUFFER_CONVERSIONS_H_
#define FLUTTER_SHELL_PLATFORM_DARWIN_COMMON_BUFFER_CONVERSIONS_H_
#include <Foundation/Foundation.h>
#include <vector>
#include "flutter/fml/mapping.h"
namespace flutter {
std::vector<uint8_t> GetVectorFromNSData(NSData* data);
NSData* GetNSDataFromVector(const std::vector<uint8_t>& buffer);
std::unique_ptr<fml::Mapping> GetMappingFromNSData(NSData* data);
NSData* GetNSDataFromMapping(std::unique_ptr<fml::Mapping> mapping);
}
#endif