mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 11:00:47 +00:00
27 lines
412 B
Objective-C
27 lines
412 B
Objective-C
#import "GBCompleteByteSlice.h"
|
|
|
|
@implementation GBCompleteByteSlice
|
|
{
|
|
HFByteArray *_array;
|
|
}
|
|
|
|
- (instancetype) initWithByteArray:(HFByteArray *)array
|
|
{
|
|
if ((self = [super init])) {
|
|
_array = array;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (unsigned long long)length
|
|
{
|
|
return [_array length];
|
|
}
|
|
|
|
- (void)copyBytes:(unsigned char *)dst range:(HFRange)range
|
|
{
|
|
[_array copyBytes:dst range:range];
|
|
}
|
|
|
|
@end
|