Skip to content

Conversation

@definefalse
Copy link
Owner

No description provided.

@definefalse definefalse self-assigned this Jan 14, 2026
func ToLittleEndian(number uint32) uint32 {
return 0 // need to implement
func ToLittleEndian[T uint16 | uint32 | uint64](number T) T {
switch v := any(number).(type) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай не использовать это - этот switch будет работать в рантайме + приведение к any

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Окей. Переписал на цикл.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants