• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipConnectionFailedDelegate
      • SipRequestReceivedDelegate
      • SipResponseReceivedDelegate
      • SipTransactionCompleteDelegate
      • WindowsQos
    • SipLib.Collections
      • ThreadSafeGenericList<T>
    • SipLib.Core
      • ByteBufferInfo
      • CallProperties
      • Crypto
      • HTTPDigest
      • IPSocket
      • SIPAuthenticationHeader
      • SIPAuthorisationDigest
      • SIPAuthorisationHeadersEnum
      • SIPCallInfoHeader
      • SIPConstants
      • SIPContactHeader
      • SIPEndPoint
      • SIPEscape
      • SIPFrag
      • SIPFromHeader
      • SIPGeolocationHeader
      • SIPHeader
      • SIPHeaders
      • SIPMessage
      • SIPMessageTypesEnum
      • SIPMethods
      • SIPMethodsEnum
      • SIPPaiHeader
      • SIPParameters
      • SIPPpiHeader
      • SIPProtocolsEnum
      • SIPProtocolsType
      • SIPReplacesParameter
      • SIPRequest
      • SIPResponse
      • SIPResponseStatusCodes
      • SIPResponseStatusCodesEnum
      • SIPRoute
      • SIPRouteSet
      • SIPSchemesEnum
      • SIPSchemesType
      • SIPToHeader
      • SIPURI
      • SIPUserField
      • SIPValidationException
      • SIPValidationFieldsEnum
      • SIPViaHeader
      • SIPViaSet
      • SipUtils
      • TypeExtensions
    • SipLib.Dtls
      • AlertLevelsEnum
      • AlertTypesEnum
      • DtlsClientUdpTransport
      • DtlsServerUdpTransport
      • DtlsSrtpClient
      • DtlsSrtpServer
      • DtlsSrtpTransport
      • DtlsUtils
      • IDtlsSrtpPeer
      • IPacketTransformer
      • ITransformEngine
      • NetConvert
      • RTCDtlsFingerprint
      • RawPacket
      • SrtcpCryptoContext
      • SrtpPolicy
      • SrtpTransformEngine
      • SrtpTransformer
    • SipLib.Logging
      • SipLogger
    • SipLib.Media
      • ALawDecoder
      • ALawEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • Band
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Codec
      • G722CodecState
      • G722Decoder
      • G722Encoder
      • G722Flags
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawDecoder
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpPacket
      • RtpPacketReceivedDelegate
      • RtpPacketSentDelegate
      • RtpReceiveStatistics
      • RtpUtils
      • SdesChunk
      • SdesItem
      • SdesItemType
      • SdesPacket
      • SenderInfo
      • SenderReport
    • SipLib.RtpCrypto
      • AesFunctions
      • CryptoAttribute
      • CryptoContext
      • CryptoSuites
      • InlineParams
      • MasterKeys
      • RocVals
      • RocValues
      • SRtpErrorsEnum
      • SRtpUtils
      • SessionKeys
      • SrtpDecryptor
      • SrtpEncryptor
      • SrtpLabelItem
      • SrtpTransformBase
    • SipLib.Sdp
      • ConnectionData
      • MediaDescription
      • MediaDirectionEnum
      • Origin
      • RtpMapAttribute
      • Sdp
      • SdpAnswerSettings
      • SdpAttribute
      • SdpUtils
      • SetupType
    • SipLib.Threading
      • QueuedActionWorkerTask
    • SipLib.Transactions
      • ClientInviteTransaction
      • ClientNonInviteTransaction
      • ServerInviteTransaction
      • ServerNonInviteTransaction
      • SipTimers
      • SipTransactionBase
      • SipTransport
      • TransactionRequestReceivedDelegate
      • TransactionResponseReceivedDelegate
      • TransactionStateEnum
      • TransactionTerminationReasonEnum
    • SipLib.Video
      • H264Depacketiser
      • H264Packetiser
      • H264Packetiser.H264Nal
      • H264RtpReceiver
      • H264RtpSender
      • RtpSendDelegate
      • RtpVP8Header
      • VP8RtpReceiver
      • VP8RtpSender
      • VideoRtpReceiver
      • VideoRtpSender

    Class ByteBufferInfo

    Class for parsing a buffer of bytes

    Inheritance
    object
    ByteBufferInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Core
    Assembly: SipLib.dll
    Syntax
    public class ByteBufferInfo

    Methods

    | Edit this page View Source

    ExtractDelimitedByteArray(byte[], int, byte[], byte[])

    Extracts a byte array that is delimited by two byte array patterns

    Declaration
    public static byte[]? ExtractDelimitedByteArray(byte[] SrcArray, int StartIndex, byte[] FirstPattern, byte[] SecondPattern)
    Parameters
    Type Name Description
    byte[] SrcArray

    The input source array

    int StartIndex

    The stating index in the source array

    byte[] FirstPattern

    The first byte pattern

    byte[] SecondPattern

    The second byte array

    Returns
    Type Description
    byte[]

    Returns a new byte array if there is one between the FirstPattern and the SecondPattern or null if the FirstPattern and the SecondPattern are not found

    | Edit this page View Source

    FindFirstBytePattern(byte[], int, byte[])

    Finds the first occurrence of byte array pattern within an array.

    Declaration
    public static int FindFirstBytePattern(byte[] SrcArray, int StartIndex, byte[] BytePattern)
    Parameters
    Type Name Description
    byte[] SrcArray

    Array to search in.

    int StartIndex

    Index to start looking at

    byte[] BytePattern

    Array of bytes containing the pattern to search for.

    Returns
    Type Description
    int

    The index within the search array of the start of the pattern to search for. Returns -1 if the pattern is not found.

    | Edit this page View Source

    FindLastBytePattern(byte[], int, byte[])

    Finds the last occurrence of byte array pattern within an array.

    Declaration
    public static int FindLastBytePattern(byte[] SrcArray, int LastSrcIndex, byte[] BytePattern)
    Parameters
    Type Name Description
    byte[] SrcArray

    Array to search in.

    int LastSrcIndex

    Last index in the source array to include in the search range

    byte[] BytePattern

    Array of bytes containing the pattern to search for.

    Returns
    Type Description
    int

    The index within the search array of the start of the pattern to search for. Returns -1 if the pattern is not found.

    | Edit this page View Source

    GetStringPosition(byte[], int, int, string, string?)

    Searches a binary buffer for a string up until a specified end string.

    Declaration
    public static int GetStringPosition(byte[] buffer, int startPosition, int endPosition, string find, string? end)
    Parameters
    Type Name Description
    byte[] buffer

    The byte array to search for an instance of the specified string.

    int startPosition

    The position in the array that the search should be started from.

    int endPosition

    An index that if reached indicates the search should be halted.

    string find

    The string that is being searched for.

    string end

    If the end string is found the search is halted and a negative result returned.

    Returns
    Type Description
    int

    The start position in the buffer of the requested string or -1 if not found.

    | Edit this page View Source

    HasString(byte[], int, int, string, string)

    Tests to see if a binary array contains a string.

    Declaration
    public static bool HasString(byte[] buffer, int startPosition, int endPosition, string find, string end)
    Parameters
    Type Name Description
    byte[] buffer

    The byte array to search for an instance of the specified string.

    int startPosition

    The position in the array that the search should be started from.

    int endPosition

    An index that if reached indicates the search should be halted.

    string find

    The string that is being searched for.

    string end

    If this string is not null and is found before the find string is found, then false is returned.

    Returns
    Type Description
    bool

    Returns true if the array contains the specified string or false if it does not

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX