lib/Uint8Array.js
function DataType_Uint8Array_clone(source,  // @arg Uint8Array
                                   begin,   // @arg Integer = 0 - begin offset
                                   end) {   // @arg Integer = source.length - end offset
                                            // @ret Uint8Array
                                            // @desc make clone (not reference)
//{@dev
    $valid($type(source, "Uint8Array"),   DataType_Uint8Array_clone, "source");
    $valid($type(begin,  "Integer|omit"), DataType_Uint8Array_clone, "begin");
    $valid($type(end,    "Integer|omit"), DataType_Uint8Array_clone, "end");
//}@dev

    if (end !== undefined) {
        return new Uint8Array( source.buffer.slice(begin, end) );
    }
    return new Uint8Array( source.buffer.slice(begin || 0) );
}
function DataType_Uint8Array_clone(source,  // @arg Uint8Array
                                   begin,   // @arg Integer = 0 - begin offset
                                   end) {   // @arg Integer = source.length - end offset
                                            // @ret Uint8Array
                                            // @desc make clone (not reference)
//{@dev
    $valid($type(source, "Uint8Array"),   DataType_Uint8Array_clone, "source");
    $valid($type(begin,  "Integer|omit"), DataType_Uint8Array_clone, "begin");
    $valid($type(end,    "Integer|omit"), DataType_Uint8Array_clone, "end");
//}@dev

    if (end !== undefined) {
        return new Uint8Array( source.buffer.slice(begin, end) );
    }
    return new Uint8Array( source.buffer.slice(begin || 0) );
}
function DataType_Uint8Array_clone ( source , // @arg Uint8Array begin , // @arg Integer = 0 - begin offset end ) { // @arg Integer = source.length - end offset // @ret Uint8Array // @desc make clone (not reference) //{@dev $valid ( $type ( source , "Uint8Array" ) , DataType_Uint8Array_clone , "source" ) ; $valid ( $type ( begin , "Integer|omit" ) , DataType_Uint8Array_clone , "begin" ) ; $valid ( $type ( end , "Integer|omit" ) , DataType_Uint8Array_clone , "end" ) ; //}@dev if ( end !== undefined ) { return new Uint8Array ( source . buffer . slice ( begin , end ) ) ; } return new Uint8Array ( source . buffer . slice ( begin || 0 ) ) ; }
--- implements ------------------------------------------
--- implements ------------------------------------------