Skip to content

Instantly share code, notes, and snippets.

Map<String, String> decodeTLV(String tlvData) {
Map<String, String> decodedTags = {};
int currentIndex = 0;
while (currentIndex < tlvData.length) {
String tag = tlvData.substring(currentIndex, currentIndex + 2);
currentIndex += 2;
if (currentIndex + 2 > tlvData.length) {
break; // Insufficient length to extract
@Donkelv
Donkelv / main.dart
Created December 19, 2022 18:00
loth-arc-3243
void main() {
int bob = 0;
int alice = 1;
int dan = 2;
int charlie = 3;
int eve = 4;
Map<int, List<int>> people = {
alice: [bob, dan],
bob: [eve, charlie],
@Donkelv
Donkelv / main.dart
Created December 19, 2022 18:00
loth-arc-3243
void main() {
int bob = 0;
int alice = 1;
int dan = 2;
int charlie = 3;
int eve = 4;
Map<int, List<int>> people = {
alice: [bob, dan],
bob: [eve, charlie],
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.