Table of Contents

BencodeValueKind Enum

Definition

Namespace
Bodu.Text.Bencode
Assembly
Bodu.Text.Bencode.dll
Package
Bodu.Text.Bencode 1.0.0
Source
BencodeValueKind.cs

Identifies the kind of value a Bencode element represents.

public enum BencodeValueKind
Extension Methods

Fields

Object = 0

A dictionary, represented by a BencodeObject in the mutable model or an object BencodeElement in the read-only model.

Array = 1

A list, represented by a BencodeArray in the mutable model or an array BencodeElement in the read-only model.

ByteString = 2

A byte string, represented by a BencodeValue in the mutable model or a byte-string BencodeElement in the read-only model.

Integer = 3

An integer, represented by a BencodeValue in the mutable model or an integer BencodeElement in the read-only model.

Remarks

Bencode (BEP 3) has no boolean, null, or floating-point values, so the enumeration defines only the four value kinds the format supports - dictionaries, lists, byte strings, and integers.

Applies to

ProductVersions
.NET8, 10