1 parent
0703d74e4b
commit
976d5a3fec
42 files changed
+1608
-2087
No files matched your search
@@ -0,0 +1,28 @@
|
||||
namespace QrCode
|
||||
|
||||
class QRData_Byte
|
||||
|
||||
function new()
|
||||
m.mode = QrCode.QRMode.Byte
|
||||
end function
|
||||
|
||||
public function setData(data as string)
|
||||
m.bytes = m.stringToBytes(data)
|
||||
m.length = m.bytes.count()
|
||||
end function
|
||||
|
||||
public function writeToBuffer(buffer as QRBitBuffer)
|
||||
for each byte in m.bytes
|
||||
buffer.put(byte, 8)
|
||||
end for
|
||||
end function
|
||||
|
||||
private function stringToBytes(text as string) as object
|
||||
result = CreateObject("roByteArray")
|
||||
result.fromAsciiString(text)
|
||||
return result
|
||||
end function
|
||||
|
||||
end class
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user