GoCollections/lang/BitSet.go

17 lines
327 B
Go
Raw Normal View History

2022-11-25 18:19:33 +08:00
/*
* Copyright (c) 2022 tursom. All rights reserved.
* Use of this source code is governed by a GPL-3
* license that can be found in the LICENSE file.
*/
package lang
type (
BitSet interface {
2023-04-16 22:37:25 +08:00
BitLength() uint
2023-04-19 21:08:12 +08:00
SetBit(index uint, up bool)
SwapBit(index uint, up bool) (old bool)
2023-04-16 22:37:25 +08:00
GetBit(index uint) (ok bool)
}
)