File: iface.go

package info (click to toggle)
golang-github-cloudsoda-go-smb2 0.0~git20231124.f3ec8ae-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 972 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
package smb2

// struct based implementation; for encoding requests
type Encoder interface {
	Size() int
	Encode(b []byte)
}

// bytes based implementation; for decoding responses
type Decoder interface {
	IsInvalid() bool
	// Decode() Encoder
}