From 307feeb13f2de6ef588bc5cfdd794f2f385de1b1 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Sun, 18 Jul 2021 13:35:06 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=AB=20Little=20progress=20towards=20writi?= =?UTF-8?q?ng=20support=20=E2=9A=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/bits.go | 19 +++- util/bits_test.go | 12 +++ v2/frame.go | 238 +++++++++++++++++++++++++++++++++------------- 3 files changed, 200 insertions(+), 69 deletions(-) diff --git a/util/bits.go b/util/bits.go index 3a363d9..f20feaf 100644 --- a/util/bits.go +++ b/util/bits.go @@ -1,6 +1,19 @@ package util -// Tells if bit is set in given byte -func GetBit(n byte, bitN int) bool { - return n&byte(1<