Начало положено.

This commit is contained in:
2026-06-09 21:10:22 +05:00
parent 68dd91542d
commit 9383ee0f8a
2 changed files with 27 additions and 2 deletions

View File

@@ -1,5 +1,29 @@
package ru.thiflict
fun checkRegister(input: Long, register: Int) {
/**
* Объект для проверок двоичного кода
*
* Репозиторий: https://git.ds1.thiflict.ru/Thiflict/BinaryUtils
*
* @author Thiflict
*
* @since[1.0.0]
*
*/
object BinCheck {
/**
* Проверяет наличие единицы в заданом регистре
*
* Тип данных [Int]
*
* Пример:
* ```
* checkRegisterShort(0100, 2)
* ```
* @return true
*/
fun checkRegisterShort(input: Int, register: Int): Boolean {
val mask = 1 shl 2
}
}