package clipper

type Internal struct {
	regs map[string][]byte
}

func ( *Internal) () error {
	.regs = map[string][]byte{
		RegClipboard: []byte{},
		RegPrimary:   []byte{},
	}
	return nil
}

func ( *Internal) ( string) ([]byte, error) {
	if ,  := .regs[];  {
		 := make([]byte, len())
		copy(, )
		return , nil
	} else {
		return nil, &ErrInvalidReg{
			Reg: ,
		}
	}
}

func ( *Internal) ( string,  []byte) error {
	.regs[] = make([]byte, len())
	copy(.regs[], )
	return nil
}