Home
last modified time | relevance | path

Searched refs:valueBytes (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.Core/
DAuthProperty.cs34 byte[] valueBytes; field in Grpc.Core.AuthProperty
37 private AuthProperty(string name, byte[] valueBytes) in AuthProperty() argument
40 this.valueBytes = GrpcPreconditions.CheckNotNull(valueBytes); in AuthProperty()
41 this.value = new Lazy<string>(() => MarshalUtils.GetStringUTF8(this.valueBytes)); in AuthProperty()
73 var valueCopy = new byte[valueBytes.Length];
74 Buffer.BlockCopy(valueBytes, 0, valueCopy, 0, valueBytes.Length);
84 public static AuthProperty Create(string name, byte[] valueBytes) in Create() argument
86 GrpcPreconditions.CheckNotNull(valueBytes); in Create()
87 var valueCopy = new byte[valueBytes.Length]; in Create()
88 Buffer.BlockCopy(valueBytes, 0, valueCopy, 0, valueBytes.Length); in Create()
[all …]
DMetadata.cs148 public void Add(string key, byte[] valueBytes) in Add() argument
150 Add(new Entry(key, valueBytes)); in Add()
232 readonly byte[] valueBytes; field in Grpc.Core.Metadata.Entry
234 private Entry(string key, string value, byte[] valueBytes) in Entry() argument
238 this.valueBytes = valueBytes; in Entry()
246 public Entry(string key, byte[] valueBytes) in Entry() argument
252 GrpcPreconditions.CheckNotNull(valueBytes, "valueBytes"); in Entry()
253 this.valueBytes = new byte[valueBytes.Length]; in Entry()
254 …Buffer.BlockCopy(valueBytes, 0, this.valueBytes, 0, valueBytes.Length); // defensive copy to guar… in Entry()
268 this.valueBytes = null; in Entry()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DAuthPropertyTest.cs43 var valueBytes = new byte[] { 68, 69, 70 }; in Create()
44 var authProperty = AuthProperty.Create("abc", valueBytes); in Create()
47 Assert.AreNotSame(valueBytes, authProperty.ValueBytesUnsafe); in Create()
48 CollectionAssert.AreEqual(valueBytes, authProperty.ValueBytes); in Create()
49 CollectionAssert.AreEqual(valueBytes, authProperty.ValueBytesUnsafe); in Create()
56 var valueBytes = new byte[] { 68, 69, 70 }; in CreateUnsafe()
57 var authProperty = AuthProperty.CreateUnsafe("abc", valueBytes); in CreateUnsafe()
60 Assert.AreSame(valueBytes, authProperty.ValueBytesUnsafe); in CreateUnsafe()
61 Assert.AreNotSame(valueBytes, authProperty.ValueBytes); in CreateUnsafe()
62 CollectionAssert.AreEqual(valueBytes, authProperty.ValueBytes); in CreateUnsafe()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DStatus.java574 byte[] valueBytes = value.getBytes(UTF_8); in toAsciiString()
575 for (int i = 0; i < valueBytes.length; i++) { in toAsciiString()
576 byte b = valueBytes[i]; in toAsciiString()
579 return toAsciiStringSlow(valueBytes, i); in toAsciiString()
582 return valueBytes; in toAsciiString()
593 private static byte[] toAsciiStringSlow(byte[] valueBytes, int ri) { in toAsciiStringSlow() argument
594 byte[] escapedBytes = new byte[ri + (valueBytes.length - ri) * 3]; in toAsciiStringSlow()
597 System.arraycopy(valueBytes, 0, escapedBytes, 0, ri); in toAsciiStringSlow()
600 for (; ri < valueBytes.length; ri++) { in toAsciiStringSlow()
601 byte b = valueBytes[ri]; in toAsciiStringSlow()
/external/aac/libMpegTPEnc/src/
Dtpenc_latm.cpp120 UCHAR valueBytes = 4; in transportEnc_LatmWriteValue() local
125 valueBytes = 1; in transportEnc_LatmWriteValue()
127 valueBytes = 2; in transportEnc_LatmWriteValue()
129 valueBytes = 3; in transportEnc_LatmWriteValue()
131 valueBytes = 4; in transportEnc_LatmWriteValue()
134 FDKwriteBits(hBs, valueBytes - 1, 2); /* size of value in Bytes */ in transportEnc_LatmWriteValue()
135 for (i = 0; i < valueBytes; i++) { in transportEnc_LatmWriteValue()
137 FDKwriteBits(hBs, (UCHAR)(value >> ((valueBytes - 1 - i) << 3)), 8); in transportEnc_LatmWriteValue()
140 bitsWritten = (valueBytes << 3) + 2; in transportEnc_LatmWriteValue()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DMetadataArraySafeHandle.cs45 var valueBytes = metadata[i].GetSerializedValueUnsafe(); in Create()
46 …harp_metadata_array_add(metadataArray, metadata[i].Key, valueBytes, new UIntPtr((ulong)valueBytes.… in Create()
DAuthContextSafeHandle.cs82 var valueBytes = new byte[(int) nativeAuthProperty.ValueLength]; in PtrToAuthProperty()
83 … Marshal.Copy(nativeAuthProperty.Value, valueBytes, 0, (int)nativeAuthProperty.ValueLength); in PtrToAuthProperty()
84 return AuthProperty.CreateUnsafe(name, valueBytes); in PtrToAuthProperty()
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DGrpcHttp2HeadersUtils.java109 byte[] valueBytes = toBinaryValue(name, value); in add()
113 namesAndValues[namesAndValuesIdx] = valueBytes; in add()
/external/sqlite/dist/orig/
Dsqlite3.c72939 static SQLITE_NOINLINE int valueBytes(sqlite3_value *pVal, u8 enc){
72956 return valueBytes(pVal, enc);
/external/sqlite/dist/
Dsqlite3.c72955 static SQLITE_NOINLINE int valueBytes(sqlite3_value *pVal, u8 enc){
72972 return valueBytes(pVal, enc);