class BinData::String
def sanitized_pad_byte(byte)
def sanitized_pad_byte(byte) result = byte.is_a?(Integer) ? byte.chr : byte_string(byte.to_s.dup) if result.length > 1 raise ArgumentError, ":pad_byte must not contain more than 1 byte" end result end