git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

Cocoa/GBCompleteByteSlice.m

      1 #import "GBCompleteByteSlice.h"
      2 
      3 @implementation GBCompleteByteSlice
      4 {
      5     HFByteArray *_array;
      6 }
      7 
      8 - (instancetype) initWithByteArray:(HFByteArray *)array
      9 {
     10     if ((self = [super init])) {
     11         _array = array;
     12     }
     13     return self;
     14 }
     15 
     16 - (unsigned long long)length
     17 {
     18     return [_array length];
     19 }
     20 
     21 - (void)copyBytes:(unsigned char *)dst range:(HFRange)range
     22 {
     23     [_array copyBytes:dst range:range];
     24 }
     25 
     26 @end

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.