BitConverter.TryWriteBytes 메서드

정의

오버로드

TryWriteBytes(Span<Byte>, Int64)

64비트 부호 있는 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Boolean)

부울을 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Char)

문자를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Double)

배정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Half)

반정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Int128)
TryWriteBytes(Span<Byte>, Int16)

16비트 부호 있는 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Int32)

32비트 부호 있는 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Single)

단정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, UInt128)
TryWriteBytes(Span<Byte>, UInt16)

부호 없는 16비트 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, UInt32)

32비트 부호 없는 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, UInt64)

부호 없는 64비트 정수를 바이트 범위로 변환합니다.

TryWriteBytes(Span<Byte>, Int64)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

64비트 부호 있는 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, long value);
public static bool TryWriteBytes (Span<byte> destination, long value);
static member TryWriteBytes : Span<byte> * int64 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Long) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 64비트 부호 있는 정수를 나타내는 바이트입니다.

value
Int64

변환할 64비트 부호 있는 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Boolean)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

부울을 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, bool value);
public static bool TryWriteBytes (Span<byte> destination, bool value);
static member TryWriteBytes : Span<byte> * bool -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Boolean) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 부울을 나타내는 바이트입니다.

value
Boolean

변환할 부울입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Char)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

문자를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, char value);
public static bool TryWriteBytes (Span<byte> destination, char value);
static member TryWriteBytes : Span<byte> * char -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Char) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 문자를 나타내는 바이트입니다.

value
Char

변환할 문자입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Double)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

배정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, double value);
public static bool TryWriteBytes (Span<byte> destination, double value);
static member TryWriteBytes : Span<byte> * double -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Double) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 배정밀도 부동 소수점 값을 나타내는 바이트입니다.

value
Double

변환할 배정밀도 부동 소수점 값입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Half)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

반정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, Half value);
public static bool TryWriteBytes (Span<byte> destination, Half value);
static member TryWriteBytes : Span<byte> * Half -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Half) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환되면 변환된 반정밀도 부동 소수점 값을 나타내는 바이트입니다.

value
Half

변환할 반정밀도 부동 소수점 값입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Int128)

Source:
BitConverter.cs
public:
 static bool TryWriteBytes(Span<System::Byte> destination, Int128 value);
public static bool TryWriteBytes (Span<byte> destination, Int128 value);
static member TryWriteBytes : Span<byte> * Int128 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Int128) As Boolean

매개 변수

destination
Span<Byte>
value
Int128

반환

적용 대상

TryWriteBytes(Span<Byte>, Int16)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

16비트 부호 있는 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, short value);
public static bool TryWriteBytes (Span<byte> destination, short value);
static member TryWriteBytes : Span<byte> * int16 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Short) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 16비트 부호 있는 정수를 나타내는 바이트입니다.

value
Int16

변환할 16비트 부호 있는 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Int32)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

32비트 부호 있는 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, int value);
public static bool TryWriteBytes (Span<byte> destination, int value);
static member TryWriteBytes : Span<byte> * int -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Integer) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 32비트 부호 있는 정수를 나타내는 바이트입니다.

value
Int32

변환할 32비트 부호 있는 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, Single)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

단정밀도 부동 소수점 값을 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, float value);
public static bool TryWriteBytes (Span<byte> destination, float value);
static member TryWriteBytes : Span<byte> * single -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As Single) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환되면 변환된 단정밀도 부동 소수점 값을 나타내는 바이트입니다.

value
Single

변환할 단정밀도 부동 소수점 값입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

적용 대상

TryWriteBytes(Span<Byte>, UInt128)

Source:
BitConverter.cs

중요

이 API는 CLS 규격이 아닙니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, UInt128 value);
[System.CLSCompliant(false)]
public static bool TryWriteBytes (Span<byte> destination, UInt128 value);
[<System.CLSCompliant(false)>]
static member TryWriteBytes : Span<byte> * UInt128 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As UInt128) As Boolean

매개 변수

destination
Span<Byte>
value
UInt128

반환

특성

적용 대상

TryWriteBytes(Span<Byte>, UInt16)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

중요

이 API는 CLS 규격이 아닙니다.

부호 없는 16비트 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, System::UInt16 value);
[System.CLSCompliant(false)]
public static bool TryWriteBytes (Span<byte> destination, ushort value);
[<System.CLSCompliant(false)>]
static member TryWriteBytes : Span<byte> * uint16 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As UShort) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 부호 없는 16비트 정수를 나타내는 바이트입니다.

value
UInt16

변환할 부호 없는 16비트 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

특성

적용 대상

TryWriteBytes(Span<Byte>, UInt32)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

중요

이 API는 CLS 규격이 아닙니다.

32비트 부호 없는 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, System::UInt32 value);
[System.CLSCompliant(false)]
public static bool TryWriteBytes (Span<byte> destination, uint value);
[<System.CLSCompliant(false)>]
static member TryWriteBytes : Span<byte> * uint32 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As UInteger) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 부호 없는 32비트 정수를 나타내는 바이트입니다.

value
UInt32

변환할 부호 없는 32비트 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

특성

적용 대상

TryWriteBytes(Span<Byte>, UInt64)

Source:
BitConverter.cs
Source:
BitConverter.cs
Source:
BitConverter.cs

중요

이 API는 CLS 규격이 아닙니다.

부호 없는 64비트 정수를 바이트 범위로 변환합니다.

public:
 static bool TryWriteBytes(Span<System::Byte> destination, System::UInt64 value);
[System.CLSCompliant(false)]
public static bool TryWriteBytes (Span<byte> destination, ulong value);
[<System.CLSCompliant(false)>]
static member TryWriteBytes : Span<byte> * uint64 -> bool
Public Shared Function TryWriteBytes (destination As Span(Of Byte), value As ULong) As Boolean

매개 변수

destination
Span<Byte>

이 메서드가 반환될 때 변환된 부호 없는 64비트 정수를 나타내는 바이트입니다.

value
UInt64

변환할 부호 없는 64비트 정수입니다.

반환

변환에 성공했으면 true이고, 그렇지 않으면 false입니다.

특성

적용 대상