Codec
Overview
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.golang.org.x.net.websocket
- Platforms: .NET, .NET Standard 2.0, Island
constructor
constructor
Codec()
init()
Sub New()
constructor (Func<Object, tuple of (Slice<Byte>, Byte, error)>, Func<Slice<Byte>, Byte, Object, error>)
// .NET, .NET Standard 2.0
constructor(aMarshal: Func<Object, tuple of (Slice<Byte>, Byte, error)>; aUnmarshal: Func<Slice<Byte>, Byte, Object, error>)
// Island
constructor(aMarshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>; aUnmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
// .NET, .NET Standard 2.0
Codec(Func<Object, tuple of (Slice<Byte>, Byte, error)> aMarshal, Func<Slice<Byte>, Byte, Object, error> aUnmarshal)
// Island
Codec(Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)> aMarshal, Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error> aUnmarshal)
// .NET, .NET Standard 2.0
init(_ aMarshal: Func<Object, (Slice<Byte>, Byte, error)>, _ aUnmarshal: Func<Slice<Byte>, Byte, Object, error>)
// Island
init(_ aMarshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>, _ aUnmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
// .NET, .NET Standard 2.0
Sub New(aMarshal As Func (Of Object, Tuple (Of Slice<Byte>, Byte, error)), aUnmarshal As Func (Of Slice<Byte>, Byte, Object, error))
// Island
Sub New(aMarshal As Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>, aUnmarshal As Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
Parameters:
- aMarshal:
- aUnmarshal:
constructor (Codec)
Parameters:
- value:
Marshal
// .NET, .NET Standard 2.0
var Marshal: Func<Object, tuple of (data: Slice<Byte>, payloadType: byte, err: error)>;
// Island
var Marshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>;
// .NET, .NET Standard 2.0
Func<Object, (Slice<Byte>, byte, error)err> Marshal
// Island
Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)> Marshal
// .NET, .NET Standard 2.0
var Marshal: Func<Object, (Slice<Byte>, byte, error)>
// Island
var Marshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
// .NET, .NET Standard 2.0
Marshal Func<interface{}, tuple of (|name=data| Slice<Byte>, |name=payloadType| byte, |name=err| error)>
// Island
Marshal Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
// .NET, .NET Standard 2.0
FIELD Marshal() As Func (Of Object, Tuple (Of Slice<Byte>, byte, error))
// Island
FIELD Marshal() As Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
Receive
// .NET, .NET Standard 2.0
method Receive(ws: Memory<Conn>; v: Object): error
// Island
method Receive(ws: Memory<Conn>; v: Object): error
// .NET, .NET Standard 2.0
error Receive(Memory<Conn> ws, Object v)
// Island
error Receive(Memory<Conn> ws, Object v)
// .NET, .NET Standard 2.0
func Receive(_ ws: Memory<Conn>, _ v: Object) -> error
// Island
func Receive(_ ws: Memory<Conn>, _ v: Object) -> error
// .NET, .NET Standard 2.0
func Receive(ws Memory<Conn>, v interface{}) error
// Island
func Receive(ws Memory<Conn>, v interface{}) error
Parameters:
- ws:
- v:
Send
// .NET, .NET Standard 2.0
method Send(ws: Memory<Conn>; v: Object): error
// Island
method Send(ws: Memory<Conn>; v: Object): error
// .NET, .NET Standard 2.0
error Send(Memory<Conn> ws, Object v)
// Island
error Send(Memory<Conn> ws, Object v)
// .NET, .NET Standard 2.0
func Send(_ ws: Memory<Conn>, _ v: Object) -> error
// Island
func Send(_ ws: Memory<Conn>, _ v: Object) -> error
// .NET, .NET Standard 2.0
func Send(ws Memory<Conn>, v interface{}) error
// Island
func Send(ws Memory<Conn>, v interface{}) error
Parameters:
- ws:
- v:
Unmarshal
// .NET, .NET Standard 2.0
var Unmarshal: Func<Slice<Byte>, byte, Object, error>;
// Island
var Unmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>;
// .NET, .NET Standard 2.0
Func<Slice<Byte>, byte, Object, error> Unmarshal
// Island
Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error> Unmarshal
// .NET, .NET Standard 2.0
var Unmarshal: Func<Slice<Byte>, byte, Object, error>
// Island
var Unmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>
// .NET, .NET Standard 2.0
Unmarshal Func<Slice<Byte>, byte, interface{}, error>
// Island
Unmarshal Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>
Marshal
// .NET, .NET Standard 2.0
var Marshal: Func<Object, tuple of (data: Slice<Byte>, payloadType: byte, err: error)>;
// Island
var Marshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>;
// .NET, .NET Standard 2.0
Func<Object, (Slice<Byte>, byte, error)err> Marshal
// Island
Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)> Marshal
// .NET, .NET Standard 2.0
var Marshal: Func<Object, (Slice<Byte>, byte, error)>
// Island
var Marshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
// .NET, .NET Standard 2.0
Marshal Func<interface{}, tuple of (|name=data| Slice<Byte>, |name=payloadType| byte, |name=err| error)>
// Island
Marshal Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
// .NET, .NET Standard 2.0
FIELD Marshal() As Func (Of Object, Tuple (Of Slice<Byte>, byte, error))
// Island
FIELD Marshal() As Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>
Unmarshal
// .NET, .NET Standard 2.0
var Unmarshal: Func<Slice<Byte>, byte, Object, error>;
// Island
var Unmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>;
// .NET, .NET Standard 2.0
Func<Slice<Byte>, byte, Object, error> Unmarshal
// Island
Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error> Unmarshal
// .NET, .NET Standard 2.0
var Unmarshal: Func<Slice<Byte>, byte, Object, error>
// Island
var Unmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>
// .NET, .NET Standard 2.0
Unmarshal Func<Slice<Byte>, byte, interface{}, error>
// Island
Unmarshal Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>
constructor
constructor
Codec()
init()
Sub New()
constructor (Func<Object, tuple of (Slice<Byte>, Byte, error)>, Func<Slice<Byte>, Byte, Object, error>)
// .NET, .NET Standard 2.0
constructor(aMarshal: Func<Object, tuple of (Slice<Byte>, Byte, error)>; aUnmarshal: Func<Slice<Byte>, Byte, Object, error>)
// Island
constructor(aMarshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>; aUnmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
// .NET, .NET Standard 2.0
Codec(Func<Object, tuple of (Slice<Byte>, Byte, error)> aMarshal, Func<Slice<Byte>, Byte, Object, error> aUnmarshal)
// Island
Codec(Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)> aMarshal, Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error> aUnmarshal)
// .NET, .NET Standard 2.0
init(_ aMarshal: Func<Object, (Slice<Byte>, Byte, error)>, _ aUnmarshal: Func<Slice<Byte>, Byte, Object, error>)
// Island
init(_ aMarshal: Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>, _ aUnmarshal: Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
// .NET, .NET Standard 2.0
Sub New(aMarshal As Func (Of Object, Tuple (Of Slice<Byte>, Byte, error)), aUnmarshal As Func (Of Slice<Byte>, Byte, Object, error))
// Island
Sub New(aMarshal As Func<RemObjects.Elements.System.Object,tuple of (|name=data| go.builtin.Slice<RemObjects.Elements.System.Byte>,|name=payloadType| go.builtin.byte,|name=err| go.builtin.error)>, aUnmarshal As Func<go.builtin.Slice<RemObjects.Elements.System.Byte>,go.builtin.byte,RemObjects.Elements.System.Object,go.builtin.error>)
Parameters:
- aMarshal:
- aUnmarshal:
constructor (Codec)
Parameters:
- value:
Receive
// .NET, .NET Standard 2.0
method Receive(ws: Memory<Conn>; v: Object): error
// Island
method Receive(ws: Memory<Conn>; v: Object): error
// .NET, .NET Standard 2.0
error Receive(Memory<Conn> ws, Object v)
// Island
error Receive(Memory<Conn> ws, Object v)
// .NET, .NET Standard 2.0
func Receive(_ ws: Memory<Conn>, _ v: Object) -> error
// Island
func Receive(_ ws: Memory<Conn>, _ v: Object) -> error
// .NET, .NET Standard 2.0
func Receive(ws Memory<Conn>, v interface{}) error
// Island
func Receive(ws Memory<Conn>, v interface{}) error
Parameters:
- ws:
- v:
Send
// .NET, .NET Standard 2.0
method Send(ws: Memory<Conn>; v: Object): error
// Island
method Send(ws: Memory<Conn>; v: Object): error
// .NET, .NET Standard 2.0
error Send(Memory<Conn> ws, Object v)
// Island
error Send(Memory<Conn> ws, Object v)
// .NET, .NET Standard 2.0
func Send(_ ws: Memory<Conn>, _ v: Object) -> error
// Island
func Send(_ ws: Memory<Conn>, _ v: Object) -> error
// .NET, .NET Standard 2.0
func Send(ws Memory<Conn>, v interface{}) error
// Island
func Send(ws Memory<Conn>, v interface{}) error
Parameters:
- ws:
- v: