Peach :: Generators :: data :: FixedLengthString :: Class FixedLengthString
[hide private]

Class FixedLengthString

source code


Generates a fixed length string. If the generated string that this wrapps is to long it will be truncated. If to short it will be padded.

@author Collin Greene

Instance Methods [hide private]
 
__init__(self, group, gen, length, padChar, charSize=1) source code
 
getRawValue(self) source code
Method Details [hide private]

__init__(self, group, gen, length, padChar, charSize=1)
(Constructor)

source code 
Parameters:
  • group (Group) - Group
  • generator (Generator) - Generator that generates strings
  • length (int) - Length of string
  • padChar (string) - Character to pad string with
  • charSize (int) - Character size, defaults to 1. For WCHARs use 2.