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