Set the scriptSig for this input using a string of bytes.
168097
def script_sig=(blob)
      # This is only a setter because of the initial choice to do things
      # eagerly.  Can become an attr_accessor when we move to lazy eval.
      script = Script.new(:blob => blob)
      @script_sig = script.to_s
      @native.script_sig = blob
    end
924384
def _setbin_safe(self, binstring):
        """"""
        binstring = tidy_input_string(binstring)
        # remove any 0b if present
        binstring = binstring.replace('0b', '')
        self._setbin_unsafe(binstring)
1094558
def process_string(self, tag):
        """"""
        tag.set_address(self.string_register.current_address)
        if self.is_sixteen_bit:
            # each string address needs 1 byte = 1/2 an address
            self.string_register.move_to_next_address(1)
            return
        # each string address needs 1 byte = 1 address
        self.string_register.move_to_next_address(1)
215534
def _setbin_unsafe(self, binstring):
        """"""
        length = len(binstring)
        # pad with zeros up to byte boundary if needed
        boundary = ((length + 7) // 8) * 8
        padded_binstring = binstring + '0' * (boundary - length)\
                           if len(binstring) < boundary else binstring
        try:
            bytelist = [int(padded_binstring[x:x + 8], 2)
                        for x in xrange(0, len(padded_binstring), 8)]
        except ValueError:
            raise CreationError("Invalid character in bin initialiser {0}.", binstring)
        self._setbytes_unsafe(bytearray(bytelist), length, 0)
117477
@Override
  public BytesImpl set(int pos, byte []buffer, int offset, int length)
  {
    System.arraycopy(buffer, offset, _data, pos, length);

    return this;
  }
809565
def _setoct(self, octstring):
        """"""
        octstring = tidy_input_string(octstring)
        # remove any 0o if present
        octstring = octstring.replace('0o', '')
        binlist = []
        for i in octstring:
            try:
                if not 0 <= int(i) < 8:
                    raise ValueError
                binlist.append(OCT_TO_BITS[int(i)])
            except ValueError:
                raise CreationError("Invalid symbol '{0}' in oct initialiser.", i)
        self._setbin_unsafe(''.join(binlist))
163507
public void set(byte b, String s) {
		if ((s != null) && (s.length() > 0))
			m_infos.put(key(b), s);
		else
			remove(b);
	}
1291095
def copy(string, xsel=False):
    """"""
    try:
        _cmd = ["xclip", "-selection", "clipboard"]
        subprocess.Popen(_cmd, stdin=subprocess.PIPE).communicate(
                string.encode('utf-8'))
        if xsel:
            _cmd = ["xclip", "-selection", "primary"]
            subprocess.Popen(_cmd, stdin=subprocess.PIPE).communicate(
                    string.encode('utf-8'))
    except OSError as why:
        raise XclipNotFound
1206623
public void setPostInstallScript( final String script) {
        setPostInstallProgram(readProgram(script));
        if ( script != null) format.getHeader().createEntry( POSTINSCRIPT, script);
	}
598180
def set_string(self, string):
        """"""
        self.string = string
        self.length = len(string)
        self.reset_position()
1054289
function ScriptNum(num, base) {
  if (!(this instanceof ScriptNum))
    return new ScriptNum(num, base);

  I64.call(this, num, base);
}
1103633
def make_input(self, with_header=False):
        """"""
        s = str(self.input)
        if with_header: s = str(self) + "\n" + s
        return s
1193994
def make_str(value):
    """"""
    if isinstance(value, bytes):
        try:
            return value.decode(get_filesystem_encoding())
        except UnicodeError:
            return value.decode('utf-8', 'replace')
    return text_type(value)
256228
function fromBytes(input){
    var output = '';
    var len = input.length;
    var i = 0;
    var b1;
    var b2;

    while (i < len)
    {
      b1 = input[i++] || 0;
      b2 = input[i++] || 0;
      output += String.fromCharCode((b2 << 8) | b1);
    }
    return output;
  }
516886
def print_bytes(byte_str):
    """"""
    if isinstance(byte_str, str):
        print(byte_str)
    else:
        print(str(byte_str, encoding='utf8'))
1062167
protected void setByteArrayValue(byte[] input) {
        this.sValue = null;
        this.bValue = input;
        this.offset = 0;
        this.valueLength = input.length;
        if (ELEM_ADDED != this.status) {
            this.status = ELEM_CHANGED;
        }
    }
807849
def _set_input_buffer(self, text):
        """"""
        if self.current_prompt_pos is not None:
            self.replace_text(self.current_prompt_pos, 'eol', text)
        else:
            self.insert(text)
        self.set_cursor_position('eof')