GetUInt8() 개인적인 메소드

private GetUInt8 ( uint byteOffset ) : Byte
byteOffset uint
리턴 Byte
예제 #1
0
 public void TestSetGetUInt8() {
     Action f = () => {
         var b = new ArrayBuffer(16);
         var v = new DataView(b);
         v.SetUInt8(0, 5);
         v.SetUInt8(8, 6);
         Done(v.GetUInt8(0) == 5 && v.GetUInt8(8) == 6);
     };
     this.Start(f);
 }
예제 #2
0
 public void TestCtorArrayBufferOffsetLength() {
     Action f = () => {
         var a = new UInt8Array(new byte[] { 1, 2, 3, 4 });
         var v = new DataView(a.Buffer, 1, 1);
         Done(v.ByteLength == 1 && v.GetUInt8(0) == 2);
     };
     this.Start(f);
 }