MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / onByteOrderSelect

Function onByteOrderSelect

ui/src/components/RelayIdInput.tsx:56–69  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

54 };
55
56 const onByteOrderSelect = (v: string) => {
57 if (v === byteOrder) {
58 return;
59 }
60
61 setByteOrder(v);
62
63 const current = value;
64 const bytes = current.match(/[A-Fa-f0-9]{2}/g) || [];
65 const vv = bytes.reverse().join("");
66
67 setValue(vv);
68 updateField(vv);
69 };
70
71 const generateRandom = () => {
72 const cryptoObj = window.crypto || window.Crypto;

Callers

nothing calls this directly

Calls 1

updateFieldFunction · 0.85

Tested by

no test coverage detected