- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 524 for decoder (0.04 sec)
-
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
when(mockDeferredBuffer.dec_ndr_string()).thenReturn("DecodedShare", "Decoded Remark"); shareInfo1.decode(mockNdrBuffer); assertEquals("DecodedShare", shareInfo1.netname); assertEquals(2, shareInfo1.type); assertEquals("Decoded Remark", shareInfo1.remark); verify(mockNdrBuffer).align(4); verify(mockNdrBuffer, times(3)).dec_ndr_long();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
*/ public void enc_ndr_small(final int s) { this.buf[this.index] = (byte) (s & 0xFF); advance(1); } /** * Decodes a small integer (1 byte) from NDR format. * * @return the decoded small integer value */ public int dec_ndr_small() { final int val = this.buf[this.index] & 0xFF; advance(1); return val; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
byte[] buffer = new byte[bufferSize]; FileFsSizeInformation info = new FileFsSizeInformation(); int decoded = info.decode(buffer, 0, Math.min(bufferSize, 24)); assertEquals(24, decoded); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/Base64Test.java
} @ParameterizedTest(name = "decode({1}) -> {2}") @MethodSource("decodeProvider") void testDecode(String encoded, byte[] expected) { // Act byte[] actual = Base64.decode(encoded); // Assert assertArrayEquals(expected, actual, "Base64.decode should return original bytes"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java
if (rem == 0) { return 0; } return 8 - rem; } @Override public int decode(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { return decode(buffer, bufferIndex, false); } /** * Decodes the SMB2 message from the buffer. * * @param buffer the buffer containing the message
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
# JSON Compatible Encoder { #json-compatible-encoder } There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc). For example, if you need to store it in a database. For that, **FastAPI** provides a `jsonable_encoder()` function. ## Using the `jsonable_encoder` { #using-the-jsonable-encoder }
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/em/docs/tutorial/encoder.md
๐ ๐, ๐ ๐ฝ ๐ซ๐ ๐จ Pydantic ๐ท (๐ โฎ๏ธ ๐ข), ๐ด `dict`. ๐ ๐ช โ๏ธ `jsonable_encoder` ๐. โซ๏ธ ๐จ ๐, ๐ Pydantic ๐ท, & ๐จ ๐ป ๐ โฌ: {* ../../docs_src/encoder/tutorial001.py hl[5,22] *} ๐ ๐ผ, โซ๏ธ ๐ ๐ Pydantic ๐ท `dict`, & `datetime` `str`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.3K bytes - Viewed (0) -
docs/ko/docs/tutorial/encoder.md
๊ฐ์ ๋ฐฉ์์ผ๋ก ์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ Pydantic ๋ชจ๋ธ(์์ฑ์ด ์๋ ๊ฐ์ฒด)์ ๋ฐ์ง ์๊ณ , `dict` ๋ง์ ๋ฐ์ต๋๋ค. ์ด๋ฅผ ์ํด `jsonable_encoder` ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. Pydantic ๋ชจ๋ธ๊ณผ ๊ฐ์ ๊ฐ์ฒด๋ฅผ ๋ฐ๊ณ JSON ํธํ ๊ฐ๋ฅํ ๋ฒ์ ์ผ๋ก ๋ฐํํฉ๋๋ค: {* ../../docs_src/encoder/tutorial001.py hl[5,22] *} ์ด ์์๋ Pydantic ๋ชจ๋ธ์ `dict`๋ก, `datetime` ํ์์ `str`๋ก ๋ณํํฉ๋๋ค.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/encoder.md
Vocรช pode usar a funรงรฃo `jsonable_encoder` para resolver isso. A funรงรฃo recebe um objeto, como um modelo Pydantic e retorna uma versรฃo compatรญvel com JSON: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java
for (int i = 0; i < padding; i++) { buf.enc_ndr_small(0); } } } /** * Decodes a wide string pointer from NDR format. * * @param buf the NDR buffer * @return the decoded string (or null if NULL pointer) * @throws NdrException if decoding fails */ private String decodeWideStringPointer(NdrBuffer buf) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 09:06:40 UTC 2025 - 8.6K bytes - Viewed (0)