// Set sets the content in the buffer.
338127
func (buf *Buffer) Set(rs ...rune) error {
	rsLen := len(rs)
	buf.data = rs
	buf.pos = rsLen
	buf.size = rsLen

	return buf.Refresh()
}
263357
func (i *StringSlice) Set(value string) error {
	*i = append(*i, value)
	return nil
}
622083
func (l *LogLevel) Set(s string) error {
	value, err := ParseLevel(s)
	if err != nil {
		return err
	}

	*l = value
	return nil
}
975170
func (r *MemoryNoTS) Set(key string, value interface{}) error {
	r.items[key] = value
	return nil
}
80415
func (pb *ProgressBar) Set(current int) *ProgressBar {
	return pb.Set64(int64(current))
}
938243
func (s *StringValue) Set(v string) error {
	if s.v == nil {
		s.v = new(string)
	}
	*(s.v) = v
	return nil
}
1264458
func (i *Int64Value) Set(s string) error {
	v, err := strconv.ParseInt(s, 0, 64)
	*i = Int64Value(v)
	return err
}
393522
func (s *String) Set(val string) error {
	*s = String(val)
	return nil
}
595261
func (s *SeverityFlag) Set(value string) error {
	sev, err := log.ParseLevel(strings.ToLower(value))
	if err != nil {
		return err
	}
	s.S = sev
	return nil
}
402962
func (s HTTPStore) Set(name string, blob []byte) error {
	return s.SetMulti(map[string][]byte{name: blob})
}
697511
func (c *RawBinaryClient) Set(item *Item) MutateResponse {
	return c.mutate(opSet, item)
}
125734
func (v *String) Set(value string) {
	v.mu.Lock()
	v.s = value
	v.mu.Unlock()
}
1191585
func (f *int64SliceFlag) Set(val string) error {
	i, err := strconv.ParseInt(val, 10, 64)
	if err != nil {
		return errors.Reason("values must be 64-bit integers").Err()
	}
	*f = append(*f, i)
	return nil
}
5010
func (o *UlimitOpt) Set(val string) error {
	l, err := units.ParseUlimit(val)
	if err != nil {
		return err
	}

	(*o.values)[l.Name] = l

	return nil
}
917855
func (i *KSUID) Set(s string) error {
	return i.UnmarshalText([]byte(s))
}
151094
func (c *Cache) Set(_ context.Context, key dataloader.Key, value dataloader.Thunk) {
	c.c.Set(key.String(), value, 0)
}
417247
func (s *SSD1306Driver) Set(x, y, c int) {
	s.Buffer.Set(x, y, c)
}