Source File
application_data.go
Belonging Package
github.com/pion/dtls/v2/pkg/protocol
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage protocol// ApplicationData messages are carried by the record layer and are// fragmented, compressed, and encrypted based on the current connection// state. The messages are treated as transparent data to the record// layer.// https://tools.ietf.org/html/rfc5246#section-10type ApplicationData struct {Data []byte}// ContentType returns the ContentType of this contentfunc ( ApplicationData) () ContentType {return ContentTypeApplicationData}// Marshal encodes the ApplicationData to binaryfunc ( *ApplicationData) () ([]byte, error) {return append([]byte{}, .Data...), nil}// Unmarshal populates the ApplicationData from binaryfunc ( *ApplicationData) ( []byte) error {.Data = append([]byte{}, ...)return nil}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |