blob: a3d72bad440c90934448ab766e3df401d6899c31 [file] [log] [blame]
kkostiuk74d1ae42021-06-17 11:10:15 -04001/*
2 * Copyright (C) 2021 -2022 Savoir-faire Linux Inc.
3
4 * Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#import <Foundation/Foundation.h>
22
23#import <map>
24#import <string>
25#import <vector>
26
27NS_ASSUME_NONNULL_BEGIN
28
29@interface Utils : NSObject
30
31+ (NSMutableDictionary*)mapToDictionnary:
32 (const std::map<std::string, std::string>&)map;
33+ (std::vector<uint8_t>)vectorOfUInt8FromData:(NSData*)data;
Kateryna Kostiuk2648aab2022-08-30 14:24:03 -040034+ (NSArray*)vectorOfMapsToArray: (const std::vector<std::map<std::string, std::string>>&)vectorOfMaps;
kkostiuk74d1ae42021-06-17 11:10:15 -040035
36@end
37
38NS_ASSUME_NONNULL_END