     }
 }
 
-var test = NSData(int16ToBig:(-101))
+var test = NSData(int16ToBig:1000)
 test.hexStringValue()
-println(test.int16FromBigValue())
+println(test.int16FromLittleValue())

}

func int16BigToHost(value:Int16) -> Int16 {
    return (value << 8) | (value >> 8);
}

func int16HostToBig(value:Int16) -> Int16 {
    return (value << 8) | (value >> 8);
}

extension NSData {

        return int16BigToHost(value)
    }
    
    // uytils
    func hexStringValue() -> String {
        var dataBytes = Array<Byte>(count:self.length, repeatedValue:0x0)
        self.getBytes(&dataBytes, length:self.length)
