feat: small commit

This commit is contained in:
Orion Kindel
2023-04-04 15:36:01 -07:00
parent d318388c8f
commit ecf9086b35
33 changed files with 2217 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
package dev.toad.msg;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class MessageOptionValueOwned implements MessageOptionValue {
public final byte[] bytes;
public MessageOptionValueOwned(MessageOptionValueRef ref) {
this.bytes = ref.asBytes().clone();
}
public byte[] asBytes() {
return this.bytes;
}
public String asString() {
return new String(this.asBytes());
}
}