mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Added/updated/synchronized documentation comments for QrSegment's accessor methods, in all languages except C.
This commit is contained in:
@@ -704,12 +704,15 @@ class QrSegment(object):
|
||||
# ---- Accessor methods ----
|
||||
|
||||
def get_mode(self):
|
||||
"""Returns the mode field of this segment."""
|
||||
return self._mode
|
||||
|
||||
def get_num_chars(self):
|
||||
"""Returns the character count field of this segment."""
|
||||
return self._numchars
|
||||
|
||||
def get_bits(self):
|
||||
"""Returns a new copy of the data bits of this segment."""
|
||||
return list(self._bitdata) # Make defensive copy
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user