func (c *Column) Write(w io.Writer) error { err := iohelper.WriteVarBytes(w, c.Family) if err != nil { return errors.Trace(err) } err = iohelper.WriteVarBytes(w, c.Qual) if err != nil { return errors.Trace(err) } return nil }
func (l *themisLock) write(w io.Writer) { binary.Write(w, binary.BigEndian, byte(l.typ)) binary.Write(w, binary.BigEndian, int64(l.ts)) // write client addr iohelper.WriteVarBytes(w, []byte(l.clientAddr)) binary.Write(w, binary.BigEndian, int64(l.wallTs)) }
func (c *ColumnCoordinate) Write(w io.Writer) error { err := iohelper.WriteVarBytes(w, c.Table) if err != nil { return errors.Trace(err) } err = iohelper.WriteVarBytes(w, c.Row) if err != nil { return errors.Trace(err) } err = c.Column.Write(w) if err != nil { return errors.Trace(err) } return nil }
func encode(parts ...[]byte) ([]byte, error) { buf := &bytes.Buffer{} for _, p := range parts { err := iohelper.WriteVarBytes(buf, p) if err != nil { return nil, err } } return buf.Bytes(), nil }
func (c *ColumnCoordinate) Write(w io.Writer) { iohelper.WriteVarBytes(w, c.Table) iohelper.WriteVarBytes(w, c.Row) c.Column.Write(w) }
func (c *Column) Write(w io.Writer) { iohelper.WriteVarBytes(w, c.Family) iohelper.WriteVarBytes(w, c.Qual) }