- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,314 for bytesB (0.04 seconds)
-
guava-tests/test/com/google/common/hash/HashCodeTest.java
// These will have the same first 4 bytes (all 0). byte[] bytesA = new byte[5]; byte[] bytesB = new byte[5]; // Change only the last (5th) byte bytesA[4] = (byte) 0xbe; bytesB[4] = (byte) 0xef; HashCode hashCodeA = HashCode.fromBytes(bytesA); HashCode hashCodeB = HashCode.fromBytes(bytesB); // They aren't equal...Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
// These will have the same first 4 bytes (all 0). byte[] bytesA = new byte[5]; byte[] bytesB = new byte[5]; // Change only the last (5th) byte bytesA[4] = (byte) 0xbe; bytesB[4] = (byte) 0xef; HashCode hashCodeA = HashCode.fromBytes(bytesA); HashCode hashCodeB = HashCode.fromBytes(bytesB); // They aren't equal...Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
docs/tr/docs/advanced/json-base64-bytes.md
Şöyle bir response alırsınız: ```json { "description": "Some data", "content": "hello" } ``` ## Çıkış Verisi için Pydantic `bytes` { #pydantic-bytes-for-output-data } Çıkış verisi için de model config'inde `ser_json_bytes` ile `bytes` alanları kullanabilirsiniz; Pydantic JSON response üretirken bytes'ı base64 olarak serialize eder.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:51:35 GMT 2026 - 2.6K bytes - Click Count (0) -
docs/ko/docs/advanced/json-base64-bytes.md
반드시 JSON 안에 바이너리 데이터를 포함해야 하고, 파일을 사용할 수 없을 때만 base64를 사용하세요. ## Pydantic `bytes` { #pydantic-bytes } `bytes` 필드를 가진 Pydantic 모델을 선언하고, 모델 설정에서 `val_json_bytes`를 사용하도록 지정하면 입력 JSON 데이터를 base64로 “검증”하도록 할 수 있습니다. 이 검증 과정의 일부로 base64 문자열을 바이트로 디코딩합니다. {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *} `/docs`를 확인하면 `data` 필드가 base64로 인코딩된 bytes를 기대한다고 표시됩니다: <div class="screenshot">Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:56:39 GMT 2026 - 2.9K bytes - Click Count (0) -
src/bytes/bytes.go
return Map(c.ToTitle, s) } // ToValidUTF8 treats s as UTF-8-encoded bytes and returns a copy with each run of bytes // representing invalid UTF-8 replaced with the bytes in replacement, which may be empty. func ToValidUTF8(s, replacement []byte) []byte { b := make([]byte, 0, len(s)+len(replacement)) invalid := false // previous byte was from an invalid UTF-8 sequence for i := 0; i < len(s); {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Mar 12 17:56:55 GMT 2026 - 36.3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Bytes.java
// javadoc? @GwtCompatible public final class Bytes { private Bytes() {} /** * Returns a hash code for {@code value}; obsolete alternative to {@link Byte#hashCode(byte)}. * * @param value a primitive {@code byte} value * @return a hash code for the value */ @InlineMe(replacement = "Byte.hashCode(value)") @InlineMeValidationDisabled(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 15.6K bytes - Click Count (0) -
docs/en/docs/advanced/json-base64-bytes.md
You will receive a response like: ```json { "description": "Some data", "content": "hello" } ``` ## Pydantic `bytes` for Output Data { #pydantic-bytes-for-output-data } You can also use `bytes` fields with `ser_json_bytes` in the model config for output data, and Pydantic will *serialize* the bytes as base64 when generating the JSON response.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.4K bytes - Click Count (0) -
docs/ru/docs/advanced/json-base64-bytes.md
"content": "hello" } ``` ## Pydantic `bytes` для выходных данных { #pydantic-bytes-for-output-data } Вы также можете использовать поля `bytes` с `ser_json_bytes` в конфиге модели для выходных данных, и Pydantic будет сериализовать байты в base64 при формировании JSON-ответа. {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 3.8K bytes - Click Count (0) -
docs/de/docs/advanced/json-base64-bytes.md
} ``` ## Pydantic `bytes` für Ausgabedaten { #pydantic-bytes-for-output-data } Sie können in der Modellkonfiguration für Ausgabedaten auch `bytes`-Felder mit `ser_json_bytes` verwenden; Pydantic wird die Bytes bei der Erzeugung der JSON-Response als base64 *serialisieren*. {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:48:21 GMT 2026 - 2.8K bytes - Click Count (0) -
docs/pt/docs/advanced/json-base64-bytes.md
{* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *} Se você verificar a `/docs`, verá que o campo `data` espera bytes codificados em base64: <div class="screenshot"> <img src="/img/tutorial/json-base64-bytes/image01.png">Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:13 GMT 2026 - 2.6K bytes - Click Count (0)