示例#1
0
        public void SetNormalArrayWithOffsetWorks()
        {
            var arr = new Uint8Array(6);

            arr.Set(new byte[] { 3, 6, 7 }, 2);
            AssertContent(arr, new[] { 0, 0, 3, 6, 7, 0 }, "Content");
        }
示例#2
0
        public void SetNormalArrayWorks()
        {
            var arr = new Uint8Array(4);

            arr.Set(new byte[] { 3, 6, 7 });
            AssertContent(arr, new[] { 3, 6, 7, 0 }, "Content");
        }
		public void SetNormalArrayWithOffsetWorks() {
			var arr = new Uint8Array(6);
			arr.Set(new byte[] { 3, 6, 7 }, 2);
			AssertContent(arr, new[] { 0, 0, 3, 6, 7, 0 }, "Content");
		}
		public void SetNormalArrayWorks() {
			var arr = new Uint8Array(4);
			arr.Set(new byte[] { 3, 6, 7 });
			AssertContent(arr, new[] { 3, 6, 7, 0 }, "Content");
		}