Utf8Formatter.TryFormat 메서드

정의

오버로드

Name Description
TryFormat(Boolean, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Boolean .

TryFormat(Byte, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Byte .

TryFormat(DateTime, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 DateTime .

TryFormat(DateTimeOffset, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 DateTimeOffset .

TryFormat(Decimal, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Decimal .

TryFormat(Double, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Double .

TryFormat(Guid, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Guid .

TryFormat(Int16, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Int16 .

TryFormat(Int32, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Int32 .

TryFormat(Int64, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Int64 .

TryFormat(SByte, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 SByte .

TryFormat(Single, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 Single .

TryFormat(TimeSpan, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 TimeSpan .

TryFormat(UInt16, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 UInt16 .

TryFormat(UInt32, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 UInt32 .

TryFormat(UInt64, Span<Byte>, Int32, StandardFormat)

UTF8 문자열로 서식을 지정합니다 UInt64 .

TryFormat(Boolean, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Boolean.cs
Source:
Utf8Formatter.Boolean.cs
Source:
Utf8Formatter.Boolean.cs
Source:
Utf8Formatter.Boolean.cs
Source:
Utf8Formatter.Boolean.cs

UTF8 문자열로 서식을 지정합니다 Boolean .

public static bool TryFormat(bool value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : bool * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Boolean, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Boolean

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G(기본값) 참/거짓
l true/false

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Byte, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

UTF8 문자열로 서식을 지정합니다 Byte .

public static bool TryFormat(byte value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : byte * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Byte, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Byte

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 122
N/n 122
X/x 7a

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(DateTime, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs

UTF8 문자열로 서식을 지정합니다 DateTime .

public static bool TryFormat(DateTime value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : DateTime * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As DateTime, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
DateTime

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열 코멘트
G(기본값) 05/25/2017 10:30:15
R 화요일, 03 1 월 2017 08:08:05 GMT (RFC 1123)
l 화, 03 jan 2017 08:08:05 gmt (소문자 RFC 1123)
O 2017-06-12T05:30:45.7680000-07:00 (라운드트립 가능)

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(DateTimeOffset, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs
Source:
Utf8Formatter.Date.cs

UTF8 문자열로 서식을 지정합니다 DateTimeOffset .

public static bool TryFormat(DateTimeOffset value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : DateTimeOffset * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As DateTimeOffset, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
DateTimeOffset

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

적용 대상

TryFormat(Decimal, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Decimal.cs
Source:
Utf8Formatter.Decimal.cs
Source:
Utf8Formatter.Decimal.cs
Source:
Utf8Formatter.Decimal.cs
Source:
Utf8Formatter.Decimal.cs

UTF8 문자열로 서식을 지정합니다 Decimal .

public static bool TryFormat(decimal value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : decimal * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Decimal, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Decimal

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Double, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs

UTF8 문자열로 서식을 지정합니다 Double .

public static bool TryFormat(double value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : double * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Double, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Double

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Guid, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Guid.cs
Source:
Utf8Formatter.Guid.cs
Source:
Utf8Formatter.Guid.cs
Source:
Utf8Formatter.Guid.cs
Source:
Utf8Formatter.Guid.cs

UTF8 문자열로 서식을 지정합니다 Guid .

public static bool TryFormat(Guid value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : Guid * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Guid, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Guid

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 결과 문자열
D(기본값) nnnnnnnn-nnnn-nnnn-nnnnn-nnnnn-nnnnnnnnnn
b {nnnnnnn-nnnn-nnnn-nnnnn-nnnn-nnnnnnn}
P (nnnnnnnn-nnnn-nnnn-nnn-nnnnn-nnnnnnnn)
N nnnnnnnnnnnnnnnnnnnnn

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Int16, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

UTF8 문자열로 서식을 지정합니다 Int16 .

public static bool TryFormat(short value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : int16 * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Short, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Int16

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Int32, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

UTF8 문자열로 서식을 지정합니다 Int32 .

public static bool TryFormat(int value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : int * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Integer, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Int32

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Int64, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

UTF8 문자열로 서식을 지정합니다 Int64 .

public static bool TryFormat(long value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : int64 * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Long, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Int64

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(SByte, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

Important

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

UTF8 문자열로 서식을 지정합니다 SByte .

[System.CLSCompliant(false)]
public static bool TryFormat(sbyte value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
[<System.CLSCompliant(false)>]
static member TryFormat : sbyte * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As SByte, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
SByte

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

특성

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 122
N/n 122
X/x 7a

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(Single, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs
Source:
Utf8Formatter.Float.cs

UTF8 문자열로 서식을 지정합니다 Single .

public static bool TryFormat(float value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : single * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As Single, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
Single

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열 코멘트
G/g(기본값)
F/f 12.45 고정 지점
E/e 1.245000e1 급수적 인

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(TimeSpan, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.TimeSpan.cs
Source:
Utf8Formatter.TimeSpan.cs
Source:
Utf8Formatter.TimeSpan.cs
Source:
Utf8Formatter.TimeSpan.cs
Source:
Utf8Formatter.TimeSpan.cs

UTF8 문자열로 서식을 지정합니다 TimeSpan .

public static bool TryFormat(TimeSpan value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
static member TryFormat : TimeSpan * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As TimeSpan, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
TimeSpan

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

설명

지원되는 형식:

문자열 서식 지정 결과 문자열 코멘트
c/t/T(기본값) [-][d.]hh:mm:ss[.fffffff] (상수 형식)
G [-]d:hh:mm:ss.fffffff (일반 long)
g [-][d:][h]h:mm:ss[.f[f[f[f[f]]]]]] (일반 약어)

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(UInt16, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

Important

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

UTF8 문자열로 서식을 지정합니다 UInt16 .

[System.CLSCompliant(false)]
public static bool TryFormat(ushort value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
[<System.CLSCompliant(false)>]
static member TryFormat : uint16 * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As UShort, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
UInt16

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

특성

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(UInt32, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

Important

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

UTF8 문자열로 서식을 지정합니다 UInt32 .

[System.CLSCompliant(false)]
public static bool TryFormat(uint value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
[<System.CLSCompliant(false)>]
static member TryFormat : uint32 * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As UInteger, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
UInt32

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

특성

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상

TryFormat(UInt64, Span<Byte>, Int32, StandardFormat)

Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs
Source:
Utf8Formatter.Integer.cs

Important

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

UTF8 문자열로 서식을 지정합니다 UInt64 .

[System.CLSCompliant(false)]
public static bool TryFormat(ulong value, Span<byte> destination, out int bytesWritten, System.Buffers.StandardFormat format = default);
[<System.CLSCompliant(false)>]
static member TryFormat : uint64 * Span<byte> * int * System.Buffers.StandardFormat -> bool
Public Shared Function TryFormat (value As ULong, destination As Span(Of Byte), ByRef bytesWritten As Integer, Optional format As StandardFormat = Nothing) As Boolean

매개 변수

value
UInt64

형식을 지정할 값입니다.

destination
Span<Byte>

UTF8 형식 값을 쓸 버퍼입니다.

bytesWritten
Int32

메서드가 반환될 때 서식이 지정된 텍스트의 길이를 바이트 단위로 포함합니다.

format
StandardFormat

사용할 표준 형식입니다.

반품

true서식 지정 작업이 성공하면 이고, false 가 너무 작으면 destination

특성

설명

지원되는 형식:

문자열 서식 지정 예제 결과 문자열
G/g(기본값)
D/d 32767
N/n 32,767
X/x 7fff

메서드가 실패하면 버퍼의 크기를 반복적으로 늘리고 성공할 때까지 다시 시도합니다.

적용 대상