1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-12 08:30:05 +00:00
CLK/OSBindings/Mac/Clock Signal/Machine/NSData+StdVector.mm

19 lines
360 B
Plaintext

//
// NSData+StdVector.m
// Clock Signal
//
// Created by Thomas Harte on 20/09/2016.
// Copyright 2016 Thomas Harte. All rights reserved.
//
#import "NSData+StdVector.h"
@implementation NSData (StdVector)
- (std::vector<uint8_t>)stdVector8 {
uint8_t *bytes8 = (uint8_t *)self.bytes;
return std::vector<uint8_t>(bytes8, bytes8 + self.length);
}
@end