2
0

Decode(Text|Binary) now accepts []byte instead of io.Reader

This commit is contained in:
Jack Christensen
2017-03-10 16:08:47 -06:00
parent bb7122d4a8
commit 361a54abb7
35 changed files with 476 additions and 771 deletions
+4 -4
View File
@@ -14,12 +14,12 @@ func (src *VarcharArray) AssignTo(dst interface{}) error {
return (*TextArray)(src).AssignTo(dst)
}
func (dst *VarcharArray) DecodeText(r io.Reader) error {
return (*TextArray)(dst).DecodeText(r)
func (dst *VarcharArray) DecodeText(src []byte) error {
return (*TextArray)(dst).DecodeText(src)
}
func (dst *VarcharArray) DecodeBinary(r io.Reader) error {
return (*TextArray)(dst).DecodeBinary(r)
func (dst *VarcharArray) DecodeBinary(src []byte) error {
return (*TextArray)(dst).DecodeBinary(src)
}
func (src *VarcharArray) EncodeText(w io.Writer) error {