add Field.getarraylen()

This commit is contained in:
Michael Davidsaver
2014-02-08 10:36:23 -05:00
parent c9872d911b
commit 7bdcef3767
2 changed files with 29 additions and 1 deletions

View File

@@ -168,6 +168,13 @@ class _Field(object):
lock is held (ie withing :meth:`process <DeviceSupport.process>`).
"""
def getarraylen(self):
"""Return the number of active elements for the field.
>>> F = Field(...)
>>> assert len(F)>=F.getarraylen()
"""
def putarraylen(self, len):
"""Set the number of active elements in field's array.